Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 522afb3

Browse files
author
Julien Francoz
committed
Add Dockerfile for haproxy + lua-acme
1 parent a634862 commit 522afb3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Dockerfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM haproxy:2.1
2+
RUN apt-get update \
3+
&& apt-get install -y --no-install-recommends \
4+
ca-certificates \
5+
curl \
6+
lua-json \
7+
lua-luaossl \
8+
&& apt-get clean
9+
ENV CONFIG_DIR=/usr/local/etc/haproxy/
10+
# lua http
11+
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-http/master/http.lua > /http.lua
12+
# https://github.com/haproxytech/haproxy-lua-acme
13+
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/acme.lua > /acme.lua \
14+
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/config.lua > /config.lua \
15+
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/haproxy.cfg > $CONFIG_DIR/haproxy.cfg
16+
# check conf
17+
RUN haproxy -c -- $CONFIG_DIR/haproxy.cfg
18+

0 commit comments

Comments
 (0)