Skip to content

Commit

Permalink
#patch update Dockerfile, remove Pipenv
Browse files Browse the repository at this point in the history
  • Loading branch information
ducminhgd committed Feb 27, 2021
1 parent 5611ddb commit 37bb7b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ LABEL service_name="python-builder"

RUN mkdir /install
WORKDIR /install
COPY Pipfile* ./
COPY requirements.txt ./
RUN apt-get update && apt-get install -y pipenv \
&& pip install --upgrade pip && pipenv lock -r > requirements.txt \
&& pip install --prefix=/install --ignore-installed -r requirements.txt \
&& pip install --upgrade pip && pip install --prefix=/install --ignore-installed -r requirements.txt \
&& apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/

FROM python:3.8-alpine3.12
Expand Down

0 comments on commit 37bb7b9

Please sign in to comment.