docker set up

This commit is contained in:
kayela-c
2025-12-12 17:57:21 -06:00
parent b268c3fff8
commit cacaf0b303
4 changed files with 33 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Dockerfile.dev
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all code
COPY . .
# Expose port for FastAPI
EXPOSE 8000
# Run uvicorn in dev mode with reload
CMD ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]