Add Dockerfile for Python Flask application

This commit is contained in:
Outis
2026-06-01 09:31:31 -04:00
committed by GitHub
parent 47742e62d3
commit bb38aefb9d
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.12-slim
# Install docker compose CLI so the app can control other stacks
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://get.docker.com | sh && \
pip install flask && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY app.py .
COPY templates/ templates/
CMD ["python", "app.py"]