1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Reorder commands in Dockerfile

This commit is contained in:
Igor Chubin
2020-11-16 23:03:42 +00:00
parent b8df31004c
commit 99c793fa29
+6 -6
View File
@@ -3,15 +3,15 @@ FROM alpine:3.12
## installing dependencies
RUN apk add --update --no-cache git py3-six py3-pygments py3-yaml py3-gevent \
libstdc++ py3-colorama py3-requests py3-icu py3-redis
## building missing python packages
COPY requirements.txt /tmp
RUN apk add --no-cache --virtual build-deps py3-pip g++ python3-dev libffi-dev \
&& pip3 install --no-cache-dir --upgrade pygments \
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
&& apk del build-deps
## copying
WORKDIR /app
COPY . /app
## building missing python packages
RUN apk add --no-cache --virtual build-deps py3-pip g++ python3-dev libffi-dev \
&& pip3 install --no-cache-dir --upgrade pygments \
&& pip3 install --no-cache-dir -r requirements.txt \
&& apk del build-deps
# fetching dependencies
RUN mkdir -p /root/.cheat.sh/log/ \
&& python3 lib/fetch.py fetch-all