add docker
This commit is contained in:
parent
da15b454cd
commit
a0aa972d65
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# start by pulling the python image
|
||||||
|
FROM python:3.11-alpine
|
||||||
|
|
||||||
|
# copy the requirements file into the image
|
||||||
|
COPY ./reqs.txt /app/reqs.txt
|
||||||
|
|
||||||
|
# switch working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# install the dependencies and packages in the requirements file
|
||||||
|
RUN pip install -r reqs.txt
|
||||||
|
|
||||||
|
# copy every content from the local file to the image
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
# configure the container to run in an executed manner
|
||||||
|
ENTRYPOINT [ "python" ]
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
CMD ["app.py" ]
|
Loading…
Reference in New Issue
Block a user