Ensure alpine packages are up to date

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-04-27 14:23:12 -04:00
parent b68839118f
commit 0f2496fc95
2 changed files with 9 additions and 4 deletions

View file

@ -32,7 +32,9 @@ COPY --from=builder /usr/local /usr/local
COPY --from=builder /opt /opt
COPY --from=builder /etc/nginx /etc/nginx
RUN apk add -U --no-cache \
RUN apk update \
&& apk upgrade \
&& apk add -U --no-cache \
bash \
openssl \
pcre \

View file

@ -27,9 +27,12 @@ LABEL org.opencontainers.image.version="${VERSION}"
WORKDIR /etc/nginx
RUN apk add -U --no-cache \
diffutils \
libcap
RUN apk update \
&& apk upgrade \
&& apk add -U --no-cache \
diffutils \
libcap \
&& rm -rf /var/cache/apk/*
COPY --chown=www-data:www-data . /