1
0
Fork 0
docker-easy-haproxy/Dockerfile
Joao Gilberto Magalhaes 5c5f01df2b Using docker python
2022-08-23 23:01:07 -05:00

21 lines
519 B
Docker

FROM alpine:3.16
ARG RELEASE_VERSION_ARG
ENV RELEASE_VERSION=$RELEASE_VERSION_ARG
WORKDIR /scripts
COPY src/ /scripts/
COPY 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 \
&& openssl dhparam -out /etc/haproxy/dhparam 2048 \
&& openssl dhparam -out /etc/haproxy/dhparam-1024 1024
# && pytest -s tests/ \
CMD ["/usr/bin/python", "-u", "/scripts/main.py" ]