This commit is contained in:
Ryan Chen
2025-06-13 16:49:51 -04:00
commit bd3265e6a2
14 changed files with 640 additions and 0 deletions

34
Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
# Use Python 3.13 slim image as base
FROM python:3.13-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install uv for Python package management
RUN pip install uv
# Copy project files
COPY pyproject.toml .
COPY main.py .
COPY templates/ templates/
# Create uploads directory
RUN mkdir -p static/uploads
# Install Python dependencies
RUN uv pip install -e .
# Set environment variables
ENV FLASK_APP=main.py
ENV FLASK_ENV=production
# Expose port
EXPOSE 5000
# Run the application
CMD ["python", "main.py"]