This commit is contained in:
Logan Cusano
2025-12-28 02:37:39 -05:00
commit 2e491f8111
6 changed files with 231 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# Use an official Python runtime as a parent image
FROM python:3.13-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY ./app .
# Expose FastAPI port
EXPOSE 8000
# Run uvicorn
CMD ["uvicorn", "c2_main:app", "--host", "0.0.0.0", "--port", "8000"]