refactor from disgusting monolith
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,12 +1,22 @@
|
||||
# Use Python 3.12 slim image
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy and install dependencies first (cache-friendly)
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the app
|
||||
COPY app.py .
|
||||
COPY config.py .
|
||||
COPY utils/ ./utils
|
||||
COPY templates/ ./templates
|
||||
COPY static/ ./static
|
||||
|
||||
# Expose the Flask port
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||
# Run the app with Gunicorn
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||
|
||||
Reference in New Issue
Block a user