Skip to content

Commit 8eb02f5

Browse files
committed
followed the recommendation for hadolint DL3019
1 parent b7c2c36 commit 8eb02f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/alpine/Dockerfile.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM node:18-alpine3.17 AS builder
44
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
55
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
66
COPY pigallery2-release /app
7+
RUN rm /var/cache/apk/*
78
WORKDIR /app
89
RUN npm install --unsafe-perm --fetch-timeout=90000
910
RUN mkdir -p /app/data/config && \
@@ -29,6 +30,7 @@ EXPOSE 80
2930
RUN apk add --no-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.17/community/ \
3031
vips vips-cpp vips-heif vips-magick ffmpeg
3132
COPY --from=builder /app /app
33+
RUN rm /var/cache/apk/*
3234

3335
# Run build time diagnostics to make sure the app would work after build is finished
3436
RUN ["node", "./src/backend/index", "--expose-gc", "--run-diagnostics", "--config-path=/app/diagnostics-config.json", "--Server-Log-level=silly"]

0 commit comments

Comments
 (0)