This commit is contained in:
2025-10-31 10:02:46 -07:00
parent 14a09b5eff
commit 79a156c5ec
6 changed files with 41 additions and 5 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Use Python 3.9 as base image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file first (for better caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port the app runs on
EXPOSE 8080
# Command to run the application with gunicorn
CMD exec gunicorn --bind :8080 --workers 1 --threads 8 --timeout 0 app:app