2022-07-23 02:24:06 +00:00
|
|
|
FROM haproxy:2.6.2-alpine
|
2021-05-26 04:13:53 +00:00
|
|
|
USER root
|
2020-01-10 04:49:30 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk add --no-cache \
|
|
|
|
curl \
|
2020-09-10 00:52:57 +00:00
|
|
|
lua-json4 \
|
2020-01-10 04:49:30 +00: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 && \
|
2021-05-26 04:13:53 +00:00
|
|
|
cat haproxy.key haproxy.crt > /usr/local/etc/haproxy/haproxy.pem
|
|
|
|
|
|
|
|
USER haproxy
|