Set up docker auto build, copied from another project

This commit is contained in:
2025-08-31 12:18:08 +02:00
parent 071c15f40d
commit e0349ab058
3 changed files with 25 additions and 0 deletions

17
DockerFile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:3.12-slim
# Everything will be done in /app (Not in the main OS Image)
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x ./entrypoint.sh
ENV FLASK_APP=app.py
ENTRYPOINT ["./entrypoint.sh"]
CMD []

View File

8
entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
set -ex
#echo "Running database migrations..."
#flask db upgrade
echo "Starting Flask app..."
python app.py