fix: Forgot to include the SSL certificates in the Docker image (#292)

This commit is contained in:
Pаramtamtām 2024-07-05 03:01:06 -07:00 committed by GitHub
parent 3782a875e2
commit b677064733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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