mirror of
https://github.com/cupcakearmy/docker-instabot.git
synced 2024-12-22 07:16:24 +00:00
19 lines
451 B
Docker
19 lines
451 B
Docker
|
# Multi State
|
||
|
# Download and extract latest code
|
||
|
FROM alpine as GIT
|
||
|
ADD https://github.com/instabot-py/instabot.py/archive/master.zip /tmp
|
||
|
RUN unzip -q /tmp/master.zip
|
||
|
RUN cp -r instabot.py-master/src instabot.py-master/requirements.txt /tmp
|
||
|
|
||
|
|
||
|
FROM python:3-alpine
|
||
|
WORKDIR /app
|
||
|
COPY --from=GIT /tmp/requirements.txt .
|
||
|
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
COPY --from=GIT /tmp/src ./src
|
||
|
COPY app.py .
|
||
|
|
||
|
CMD [ "python3", "-u", "app.py" ]
|