Working on Docker

This commit is contained in:
Tyler
2025-05-17 20:49:36 -10:00
committed by GitHub
parent 973aa0f20f
commit da0ab0f042
2 changed files with 33 additions and 0 deletions
+31
View File
@@ -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"]
+2
View File
@@ -253,6 +253,8 @@ PacCrypt/
│ │ └── PacCrypt.png │ │ └── PacCrypt.png
│ │ └── Github_logo.png │ │ └── Github_logo.png
│ │ └── sitemap.png │ │ └── sitemap.png
│ ├── fonts/
│ │ └── PressStart2P-Regular.ttf
│ └── audio/ │ └── audio/
│ └── chomp.mp3 │ └── chomp.mp3
├── start_dev.bat ├── start_dev.bat