Browse Source

make docker build 2 stage

master
dave 2 months ago
parent
commit
1345d750b4
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      Dockerfile

+ 4
- 1
Dockerfile View File

@@ -4,10 +4,13 @@ RUN apt-get update && \
apt-get install -y python3-pip gpgv1 gnupg1 gpg sudo wget git && \
useradd artifact

ADD requirements.txt /tmp/requirements.txt

RUN pip3 install -r /tmp/requirements.txt

ADD . /tmp/code

RUN cd /tmp/code && \
pip3 install -r requirements.txt && \
python3 setup.py install

USER artifact


Loading…
Cancel
Save