Skip to content

Commit 99c793f

Browse files
committed
Reorder commands in Dockerfile
1 parent b8df310 commit 99c793f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ FROM alpine:3.12
33
## installing dependencies
44
RUN apk add --update --no-cache git py3-six py3-pygments py3-yaml py3-gevent \
55
libstdc++ py3-colorama py3-requests py3-icu py3-redis
6+
## copying
7+
WORKDIR /app
8+
COPY . /app
69
## building missing python packages
7-
COPY requirements.txt /tmp
810
RUN apk add --no-cache --virtual build-deps py3-pip g++ python3-dev libffi-dev \
911
&& pip3 install --no-cache-dir --upgrade pygments \
10-
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
12+
&& pip3 install --no-cache-dir -r requirements.txt \
1113
&& apk del build-deps
12-
## copying
13-
WORKDIR /app
14-
COPY . /app
14+
# fetching dependencies
1515
RUN mkdir -p /root/.cheat.sh/log/ \
1616
&& python3 lib/fetch.py fetch-all
1717

0 commit comments

Comments
 (0)