Fixed database packages and added Dockerfile

This commit is contained in:
2022-05-03 10:37:03 +02:00
parent 0b6381e2e1
commit d28244f425
4 changed files with 22 additions and 2 deletions

17
source/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.10-slim
# Change the working directory to the root of the project
WORKDIR /srv/flask_app
# Install the dependencies
COPY requirements.txt /srv/flask_app/
RUN pip install -r requirements.txt --src /usr/local/src --no-warn-script-location
# Copy the source code to the working directory
COPY source /srv/flask_app
# Change file permissions
RUN chmod +x ./deploy/start.sh
# Run the app
CMD ["./deploy/start.sh"]