2020-07-13 04:21:45 +00:00
|
|
|
FROM haproxy:2.2.0-alpine
|
2020-01-10 04:49:30 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk add --no-cache \
|
|
|
|
curl \
|
|
|
|
lua5.3-socket \
|
|
|
|
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
|