1
0
Fork 0
docker-easy-haproxy/Dockerfile
2022-08-15 17:02:55 +00:00

18 lines
540 B
Docker

FROM alpine:3.16
WORKDIR /scripts
COPY requirements.txt /scripts
COPY templates /scripts/templates/
COPY easymapping /scripts/easymapping/
COPY tests/ /scripts/tests/
COPY assets /
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml supervisor docker certbot openssl \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip3 install --upgrade pip \
&& pip install -r requirements.txt \
&& pytest -s tests/ \
&& openssl dhparam -out /etc/haproxy/dhparam 2048
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf" ]