1
0
Fork 0

Enforcing some SSL configurations

This commit is contained in:
Joao M 2022-08-15 17:02:55 +00:00
parent 18f799c2c3
commit 076a51d143
9 changed files with 75 additions and 35 deletions

View file

@ -2,20 +2,17 @@ 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/
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" ]