1
0
Fork 0
docker-easy-haproxy/build/Dockerfile
Joao Gilberto Magalhaes 173a31ea80 Upgrade HAProxy 2.6 LTS
2023-02-12 20:29:33 -06:00

21 lines
543 B
Docker

FROM alpine:3.17
ARG RELEASE_VERSION_ARG
ENV RELEASE_VERSION=$RELEASE_VERSION_ARG
ENV TZ="Etc/UTC"
WORKDIR /scripts
COPY src/ /scripts/
COPY build/assets /
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml certbot openssl \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& pip3 install --upgrade pip \
&& pip install -r requirements.txt \
&& pytest -s -vv tests/ \
&& openssl dhparam -out /etc/haproxy/dhparam 2048 \
&& openssl dhparam -out /etc/haproxy/dhparam-1024 1024
CMD ["/usr/bin/python", "-u", "/scripts/main.py" ]