mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
fix: Forgot to include the SSL certificates in the Docker image (#292)
This commit is contained in:
parent
3782a875e2
commit
b677064733
@ -46,9 +46,10 @@ WORKDIR /tmp/rootfs
|
|||||||
|
|
||||||
# prepare rootfs for runtime
|
# prepare rootfs for runtime
|
||||||
RUN set -x \
|
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: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
|
# take the binary from the compile stage
|
||||||
COPY --from=compile /tmp/error-pages ./bin/error-pages
|
COPY --from=compile /tmp/error-pages ./bin/error-pages
|
||||||
|
Loading…
Reference in New Issue
Block a user