Docker image #42
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
FROM python:alpine
|
||||
|
||||
WORKDIR /bot
|
||||
|
||||
COPY . .
|
||||
skobkin marked this conversation as resolved
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
ENV PYTHONUNBUFFERED='a'
|
||||
|
||||
ENTRYPOINT [ "python" ]
|
||||
|
||||
CMD [ "bot.py" ]
|
Loading…
Reference in a new issue
You can probably copy only Python files and
requirements.txt
. We don't need anything else in the image to run the app.You can use
.dockerignore
file to acomplish that. Check this documentation and my example.This file will tell
ADD
/COPY
to ignore some files you don't want to see in the image.