doc
All checks were successful
Docker Deploy / build-and-deploy (push) Successful in 20s

This commit is contained in:
sam
2026-02-06 09:42:27 +00:00
parent 2ca60d6feb
commit c380b01e49
2 changed files with 24 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# Use a lightweight Python image
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file first to leverage Docker cache
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
COPY . .
# Expose the port Flask runs on (default is 5000)
EXPOSE 5000
# Run the application using Gunicorn for production
# Replace 'app:app' with 'your_filename:app_variable_name'
# CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
CMD ["python", "app.py"]

2
requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
flask
gunicorn