Add Dockerfile for Python Flask application
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user