1
0
Fork 0
docker-easy-haproxy/Dockerfile
2022-08-15 00:34:45 +00:00

21 lines
479 B
Docker

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