From 8eb02f536a768beb55f6e5a0c595ddbe8bd8897a Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 26 Oct 2024 00:08:55 +0200 Subject: [PATCH] followed the recommendation for hadolint DL3019 --- docker/alpine/Dockerfile.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/alpine/Dockerfile.build b/docker/alpine/Dockerfile.build index 717f48ca..16024b5e 100644 --- a/docker/alpine/Dockerfile.build +++ b/docker/alpine/Dockerfile.build @@ -4,6 +4,7 @@ FROM node:18-alpine3.17 AS builder RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \ python3 build-base sqlite-dev sqlite-libs imagemagick-dev libraw-dev vips-dev vips-heif vips-magick fftw-dev gcc g++ make libc6-compat && ln -snf /usr/bin/python3 /usr/bin/python COPY pigallery2-release /app +RUN rm /var/cache/apk/* WORKDIR /app RUN npm install --unsafe-perm --fetch-timeout=90000 RUN mkdir -p /app/data/config && \ @@ -29,6 +30,7 @@ EXPOSE 80 RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \ vips vips-cpp vips-heif vips-magick ffmpeg COPY --from=builder /app /app +RUN rm /var/cache/apk/* # Run build time diagnostics to make sure the app would work after build is finished RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]