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

Commit

Permalink
Add Dockerfile for haproxy + haproxy-lua-acme
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Francoz committed Jan 28, 2020
1 parent a634862 commit 0bee7dc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM haproxy:2.1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
lua-json \
lua-luaossl \
&& apt-get clean
ENV CONFIG_DIR=/usr/local/etc/haproxy/
# lua http
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-http/master/http.lua > /http.lua
# https://github.com/haproxytech/haproxy-lua-acme
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/acme.lua > /acme.lua \
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/config.lua > /config.lua \
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/haproxy.cfg > $CONFIG_DIR/haproxy.cfg
# check conf
RUN haproxy -c -- $CONFIG_DIR/haproxy.cfg

0 comments on commit 0bee7dc

Please sign in to comment.