From da0ab0f042be29965ad21f4dc67b9e045c1a01f3 Mon Sep 17 00:00:00 2001 From: Tyler <68524461+TySP-Dev@users.noreply.github.com> Date: Sat, 17 May 2025 20:49:36 -1000 Subject: [PATCH] Working on Docker --- Dockerfile | 31 +++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6e82e9c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +# Base image +FROM python:3.11-slim + +# Environment vars +ENV PYTHONDONTWRITEBYTECODE=1 \ + PYTHONUNBUFFERED=1 \ + PRODUCTION=true + +# Working directory +WORKDIR /app + +# Install system dependencies +RUN apt-get update && \ + apt-get install -y git && \ + rm -rf /var/lib/apt/lists/* + +# Copy dependency file +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy entire app +COPY . . + +# Ensure uploads folder exists +RUN mkdir -p uploads + +# Expose the port Flask uses +EXPOSE 5000 + +# Start the app +CMD ["python", "app.py"] diff --git a/README.md b/README.md index b0cc6f4..4933ec4 100644 --- a/README.md +++ b/README.md @@ -253,6 +253,8 @@ PacCrypt/ │ │ └── PacCrypt.png │ │ └── Github_logo.png │ │ └── sitemap.png +│ ├── fonts/ +│ │ └── PressStart2P-Regular.ttf │ └── audio/ │ └── chomp.mp3 ├── start_dev.bat