Skip to content

Commit

Permalink
fix: Forgot to include the SSL certificates in the Docker image (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam authored Jul 5, 2024
1 parent 3782a87 commit b677064
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ WORKDIR /tmp/rootfs

# prepare rootfs for runtime
RUN set -x \
&& mkdir -p ./etc ./bin \
&& mkdir -p ./etc/ssl/certs ./bin \
&& echo 'appuser:x:10001:10001::/nonexistent:/sbin/nologin' > ./etc/passwd \
&& echo 'appuser:x:10001:' > ./etc/group
&& echo 'appuser:x:10001:' > ./etc/group \
&& cp /etc/ssl/certs/ca-certificates.crt ./etc/ssl/certs/

# take the binary from the compile stage
COPY --from=compile /tmp/error-pages ./bin/error-pages
Expand Down

0 comments on commit b677064

Please sign in to comment.