Update Dockerfile.
This commit is contained in:
parent
ea9e4ee7c8
commit
329711b3f9
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ ENV RELEASE_VERSION=$RELEASE_VERSION_ARG
|
||||||
ENV TZ="Etc/UTC"
|
ENV TZ="Etc/UTC"
|
||||||
|
|
||||||
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml certbot openssl \
|
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml certbot openssl \
|
||||||
|
&& apk add --no-cache --virtual .build-deps build-base python3-dev musl-dev linux-headers \
|
||||||
&& pip3 install --upgrade pip --break-system-packages
|
&& pip3 install --upgrade pip --break-system-packages
|
||||||
|
|
||||||
RUN openssl dhparam -out /etc/haproxy/dhparam 2048 \
|
RUN openssl dhparam -out /etc/haproxy/dhparam 2048 \
|
||||||
|
|
@ -19,6 +20,8 @@ COPY src/ /scripts/
|
||||||
|
|
||||||
RUN pip install -r requirements.txt --break-system-packages
|
RUN pip install -r requirements.txt --break-system-packages
|
||||||
|
|
||||||
|
RUN apk del .build-deps
|
||||||
|
|
||||||
RUN pytest -s -vv tests/
|
RUN pytest -s -vv tests/
|
||||||
|
|
||||||
CMD ["/usr/bin/python", "-u", "/scripts/main.py" ]
|
CMD ["/usr/bin/python", "-u", "/scripts/main.py" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue