mirror of
https://github.com/cupcakearmy/docker-instabot.git
synced 2024-12-22 07:16:24 +00:00
improved dockerfile
This commit is contained in:
parent
4bfe58fd40
commit
ce040da060
@ -1,12 +1,12 @@
|
|||||||
FROM alpine
|
FROM alpine:3.7
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN apk add --no-cache git python3
|
COPY ./requirements.txt .
|
||||||
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 ./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" ]
|
CMD [ "python3", "-u", "./app.py" ]
|
Loading…
Reference in New Issue
Block a user