Update Dockerfile

This commit is contained in:
saulteafarmer 2025-05-14 16:12:39 +00:00
parent daeae200e7
commit 82209902d5

View File

@ -2,14 +2,17 @@ FROM python:3.10-slim
WORKDIR /app
# System dependencies for Postgres & builds
RUN apt-get update \
&& apt-get install -y gcc libpq-dev --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose Flask port
EXPOSE 3000
CMD ["gunicorn", "-b", "0.0.0.0:3000", "app:app"]