Dockerfile 574 B

123456789101112131415161718192021
  1. FROM alpine
  2. # faketime dependencies to generate outdated certificates
  3. # see: https://github.com/trajano/alpine-libfaketime#with-simple-command-line-apps
  4. COPY --from=trajano/alpine-libfaketime /faketime.so /lib/faketime.so
  5. ENV LD_PRELOAD=/lib/faketime.so
  6. ENV CERT_DIR "/etc/ssl/certs"
  7. # install openssl
  8. RUN apk add --update openssl && \
  9. rm -rf /var/cache/apk/*
  10. # move base files to the container
  11. COPY config/* /
  12. COPY docker-entrypoint.sh /
  13. # enable volume to generate certificates into the hosts FS
  14. VOLUME ["$CERT_DIR"]
  15. # start
  16. ENTRYPOINT ["/docker-entrypoint.sh"]