1 Commits
main ... docker

Author SHA1 Message Date
kayela-c
04783f66f1 docker set up 2025-12-13 12:23:28 -06:00
4 changed files with 10 additions and 8 deletions

View File

@@ -1,18 +1,20 @@
# Dockerfile.dev
# Use an official Python image (Linux)
FROM python:3.12-slim
# Set working directory
# Set a working directory
WORKDIR /app
# Install dependencies
# Copy dependency list
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all code
# Install dependencies
RUN pip3 install -r requirements.txt
# Copy the rest of the project
COPY . .
# Expose port for FastAPI
# Expose port (whatever your backend runs on)
EXPOSE 8000
# Run uvicorn in dev mode with reload
# Run exactly your command
CMD ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
version: "3.9"
services:
backend: