From 9ec2ee094cd23cf467051a1d77804853ab3ddfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Capon?= <46624375+FrancoisCapon@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:13:21 +0100 Subject: [PATCH] Reduced image size of Docker image (#7675) --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b042e3802..d85e3e76c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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