improve docker images creation as requirements are change less often
This commit is contained in:
parent
dc49e960db
commit
f050213113
1 changed files with 5 additions and 3 deletions
|
|
@ -22,11 +22,13 @@ RUN apk add build-base
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
COPY . /bumper
|
COPY requirements.txt /requirements.txt
|
||||||
|
|
||||||
WORKDIR /bumper
|
|
||||||
|
|
||||||
# install required python packages
|
# install required python packages
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
COPY . /bumper
|
||||||
|
|
||||||
|
WORKDIR /bumper
|
||||||
|
|
||||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue