From 1e6778f2bfcc91d2a3c4395c21f4566f656bd871 Mon Sep 17 00:00:00 2001 From: SekiDesu0 Date: Thu, 26 Feb 2026 00:25:32 -0300 Subject: [PATCH] modified: Dockerfile --- Dockerfile | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index de89dbd..990d0d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,29 +1,22 @@ FROM python:3.11-slim -# Install system dependencies for eventlet/production networking -RUN apt-get update && apt-get install -y --no-install-recommends \ - gcc \ - python3-dev \ - && rm -rf /var/lib/apt/lists/* - WORKDIR /app -# Install requirements first to leverage Docker cache +# Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -# Copy the application files +# Copy source code COPY app.py . COPY templates/ ./templates/ -# Copy static folder, ensuring cache subfolder exists COPY static/ ./static/ + +# Create the folder structure for the volume mounts RUN mkdir -p /app/static/cache -# Expose the port Flask is running on EXPOSE 5000 -# Set environment variables for Flask -ENV FLASK_ENV=production +# Run with unbuffered output so you can actually see the logs in Portainer ENV PYTHONUNBUFFERED=1 CMD ["python", "app.py"] \ No newline at end of file