1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

Reduced image size of Docker image (#7675)

This commit is contained in:
François Capon 2024-11-08 14:13:21 +01:00 committed by GitHub
parent 117e35d1a5
commit 9ec2ee094c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
FROM python:3.11-alpine3.19
FROM python:3.11-alpine3.19 AS build
# Build-time flags
ARG WITH_PLUGINS=true
@ -91,6 +91,12 @@ RUN \
&& \
git config --system --add safe.directory /site
# From empty image
FROM scratch
# Copy all from build
COPY --from=build / /
# Set working directory
WORKDIR /docs