#56: Split layers in Dockerfile to speed up builds
This commit is contained in:
parent
e4a7fffa8f
commit
8e9b048d96
1 changed files with 11 additions and 7 deletions
|
|
@ -5,16 +5,20 @@ ARG RELEASE_VERSION_ARG
|
|||
ENV RELEASE_VERSION=$RELEASE_VERSION_ARG
|
||||
ENV TZ="Etc/UTC"
|
||||
|
||||
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml certbot openssl \
|
||||
&& pip3 install --upgrade pip
|
||||
|
||||
RUN openssl dhparam -out /etc/haproxy/dhparam 2048 \
|
||||
&& openssl dhparam -out /etc/haproxy/dhparam-1024 1024
|
||||
|
||||
WORKDIR /scripts
|
||||
|
||||
COPY src/ /scripts/
|
||||
COPY build/assets /
|
||||
|
||||
RUN apk add --no-cache haproxy bash python3 py3-pip py-yaml certbot openssl \
|
||||
&& 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
|
||||
COPY src/ /scripts/
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN pytest -s -vv tests/
|
||||
|
||||
CMD ["/usr/bin/python", "-u", "/scripts/main.py" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue