trabajo-afectivo/spec/fixtures/smime/generate/Dockerfile

22 lines
574 B
Text
Raw Permalink Normal View History

2020-06-02 11:01:16 +00:00
FROM alpine
# faketime dependencies to generate outdated certificates
# see: https://github.com/trajano/alpine-libfaketime#with-simple-command-line-apps
COPY --from=trajano/alpine-libfaketime /faketime.so /lib/faketime.so
ENV LD_PRELOAD=/lib/faketime.so
ENV CERT_DIR "/etc/ssl/certs"
# install openssl
RUN apk add --update openssl && \
rm -rf /var/cache/apk/*
# move base files to the container
COPY config/* /
COPY docker-entrypoint.sh /
# enable volume to generate certificates into the hosts FS
VOLUME ["$CERT_DIR"]
# start
ENTRYPOINT ["/docker-entrypoint.sh"]