Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aiastia authored Jun 19, 2022
1 parent 82a4556 commit 176a41a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /app
# Install app dependencies
COPY ./docker/sources.list .

RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && mv ./sources.list /etc/apt/
#RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak && mv ./sources.list /etc/apt/

RUN apt-get -o Acquire::Check-Valid-Until=false update \
&& apt-get install \
Expand All @@ -20,7 +20,8 @@ COPY requirements.txt .

RUN mkdir /install

RUN pip download --destination-directory /install -r /app/requirements.txt -i https://pypi.douban.com/simple
#RUN pip download --destination-directory /install -r /app/requirements.txt -i https://pypi.douban.com/simple
RUN pip download --destination-directory /install -r /app/requirements.txt

FROM python:3.7.4-slim as release

Expand Down

0 comments on commit 176a41a

Please sign in to comment.