improved dockerfile

This commit is contained in:
nicco 2018-05-23 14:07:23 +02:00
parent 4bfe58fd40
commit ce040da060

View File

@ -1,12 +1,12 @@
FROM alpine
FROM alpine:3.7
WORKDIR /app
RUN apk add --no-cache git python3
RUN git clone https://github.com/instabot-py/instabot.py.git .
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN apk del --purge git
COPY ./requirements.txt .
COPY ./app.py .
RUN apk add --no-cache python3
RUN python3 -m pip install --no-cache-dir -r requirements.txt
COPY ./ .
CMD [ "python3", "-u", "./app.py" ]