authelia/internal/suites/example/compose/haproxy/Dockerfile

12 lines
345 B
Docker
Raw Normal View History

FROM haproxy:2.6.1-alpine
USER root
2020-01-10 11:49:30 +07:00
RUN \
apk add --no-cache \
curl \
lua-json4 \
2020-01-10 11:49:30 +07:00
openssl && \
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=AU/ST=Victoria/L=Melbourne/O=Authelia/CN=*.example.com" -keyout haproxy.key -out haproxy.crt && \
cat haproxy.key haproxy.crt > /usr/local/etc/haproxy/haproxy.pem
USER haproxy