for the docker
This commit was merged in pull request #2.
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user