mirror of
https://github.com/cupcakearmy/docker-instabot.git
synced 2025-09-05 21:00:41 +00:00
clean buidl
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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" ]
|
Reference in New Issue
Block a user