From c0acb640283427fa25da4afee272d1cad2b49b9d Mon Sep 17 00:00:00 2001 From: SekiDesu0 Date: Thu, 19 Mar 2026 04:45:38 -0300 Subject: [PATCH] new file: Dockerfile new file: requirements.txt --- Dockerfile | 23 +++++++++++++++++++++++ requirements.txt | 6 ++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a9e8955 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.11-slim + +WORKDIR /app + +# Install dependencies +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy source code +COPY app.py . +COPY templates/ ./templates/ +#COPY static/ ./static/ +#COPY .env . + +# Create the folder structure for the volume mounts +RUN mkdir -p /app/static/cache + +EXPOSE 5000 + +# 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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..382316f --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +Flask==3.1.3 +Flask-Login==0.6.3 +Flask-SocketIO==5.6.1 +requests==2.32.5 +eventlet==0.36.1 +python-dotenv==1.2.2 \ No newline at end of file