1 Commits
docker ... main

Author SHA1 Message Date
kayela-c
cacaf0b303 docker set up 2025-12-12 17:57:21 -06:00
4 changed files with 8 additions and 10 deletions

View File

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