Update Dockerfile
This commit is contained in:
parent
4ac3dbb19f
commit
7aec175588
1 changed files with 6 additions and 8 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -2,18 +2,16 @@ FROM python:3.7-alpine as base
|
||||||
|
|
||||||
FROM base as builder
|
FROM base as builder
|
||||||
|
|
||||||
RUN mkdir /install
|
# add build utils (gcc, others)
|
||||||
WORKDIR /install
|
RUN apk add build-base
|
||||||
|
|
||||||
COPY requirements.txt /requirements.txt
|
|
||||||
|
|
||||||
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
|
|
||||||
|
|
||||||
FROM base
|
FROM base
|
||||||
|
|
||||||
COPY --from=builder /install /usr/local
|
|
||||||
COPY . /bumper
|
COPY . /bumper
|
||||||
|
|
||||||
WORKDIR /bumper
|
WORKDIR /bumper
|
||||||
|
|
||||||
|
# install required python packages
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue