Fix docker #59
This commit is contained in:
Brian Martin 2019-11-22 15:10:06 -05:00 committed by GitHub
commit d28eac632e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View file

@ -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"]

View file

@ -9,7 +9,7 @@ environment:
install: install:
- pip install pipenv - pip install pipenv
- pipenv --python 3 - pipenv --python 3.7
- pipenv install --dev - pipenv install --dev
build: off build: off