Update Dockerfile

This commit is contained in:
Brian Martin 2019-11-22 14:59:23 -05:00
parent 4ac3dbb19f
commit 7aec175588

View file

@ -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
# install required python packages
RUN pip3 install -r requirements.txt
ENTRYPOINT ["python3", "-m", "bumper"]