for the docker

This commit was merged in pull request #2.
This commit is contained in:
Gardient
2021-10-01 21:30:51 +03:00
parent b5a66b5d2d
commit fe424e3fa2
10 changed files with 86 additions and 81 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# Use the Python3.9.7 image
FROM python:3.9.7-bullseye
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# Install the dependencies
RUN pip install -r requirements/prod.txt
#make sure we have everything we need
RUN flask db upgrade
RUN flask seed
RUN flask setup-rabmq
# run the command to start uWSGI
CMD ["uwsgi", "app.ini"]