Added Dockerfile
The server can now be used on Docker
This commit is contained in:
parent
edc3e55ead
commit
958c5db462
5 changed files with 67 additions and 5 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# start by pulling the python image
|
||||
FROM python:3.11
|
||||
|
||||
# copy the requirements file into the image
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
|
||||
# switch working directory
|
||||
WORKDIR /app
|
||||
|
||||
# install the dependencies and packages in the requirements file
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# copy every content from the local file to the image
|
||||
COPY ./flask/ /app
|
||||
|
||||
# configure the container to run in an executed manner
|
||||
ENTRYPOINT [ "uwsgi", "--socket=0.0.0.0:5000", "--protocol=http", "-w", "wsgi:app" ]
|
Loading…
Add table
Add a link
Reference in a new issue