1
0
Fork 0

Code reorganization

This commit is contained in:
Joao Gilberto Magalhaes 2022-08-26 14:19:56 -05:00
parent 799e277fe0
commit 2a74f5d445
17 changed files with 54 additions and 20 deletions

21
build/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM alpine:3.16
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" ]