Skip to content

Commit

Permalink
Do not use apk cache
Browse files Browse the repository at this point in the history
This reduces the size of the resulting image by avoiding filling the
container filesystem with the apk package cache (as suggested by
SonarCloud)
  • Loading branch information
lunkwill42 committed Oct 23, 2024
1 parent df85a64 commit 6299921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html

USER root
RUN apk add --update tini
RUN apk add --no-cache --update tini
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY docker/docker-entrypoint.sh /
COPY docker/runtime-config-template.json /
Expand Down

0 comments on commit 6299921

Please sign in to comment.