Skip to content

Commit

Permalink
Dockerfile: update keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Aug 1, 2022
1 parent d65bad4 commit ec0259a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ RUN sed -f docker/erlang.config.sed priv/erlang.config.in > /etc/zotonic/erlang.
&& adduser -S -h /tmp -H -D zotonic \
&& chown -R zotonic /opt/zotonic/priv

# Fix for untrusted keys https://gitlab.alpinelinux.org/alpine/aports/-/issues/14043
RUN apk upgrade
RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.16/main -u alpine-keys

# Note: dumb-init and gosu are pulled from edge; remove that when upgrading to an alpine release that
# includes those packages.
ENV BUILD_APKS="ca-certificates wget curl make gcc musl-dev g++ git"
RUN apk add --no-cache --virtual build-deps $BUILD_APKS \
&& apk add --no-cache bash bsd-compat-headers file imagemagick openssl \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ dumb-init \
&& apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ gosu \
&& apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/community/ dumb-init \
&& apk add --no-cache --repository https://dl-cdn.alpinelinux.org/alpine/edge/testing/ gosu \
&& DEBUG=1 make \
&& apk del build-deps

Expand Down

0 comments on commit ec0259a

Please sign in to comment.