commit
d28eac632e
2 changed files with 7 additions and 9 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -2,18 +2,16 @@ FROM python:3.7-alpine as base
|
|||
|
||||
FROM base as builder
|
||||
|
||||
RUN mkdir /install
|
||||
WORKDIR /install
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
|
||||
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
|
||||
# add build utils (gcc, others)
|
||||
RUN apk add build-base
|
||||
|
||||
FROM base
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY . /bumper
|
||||
|
||||
WORKDIR /bumper
|
||||
|
||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||
# install required python packages
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ environment:
|
|||
|
||||
install:
|
||||
- pip install pipenv
|
||||
- pipenv --python 3
|
||||
- pipenv --python 3.7
|
||||
- pipenv install --dev
|
||||
|
||||
build: off
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue