Updated stuff

This commit is contained in:
edschuy95 2025-07-13 23:50:32 -04:00
parent a05f9c18b5
commit 4dd12c519e
4 changed files with 36 additions and 13 deletions

27
Dockerfile Normal file
View file

@ -0,0 +1,27 @@
# Use a slim Python image
FROM python:3.11-slim
# Environment: no .pyc files, real-time logs
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Create working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy app code
COPY . .
# Expose Flask port
EXPOSE 5000
# Launch Gunicorn with 4 workers (adjust for your CPU cores)
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "4"]