api / backend /Dockerfile
gary-boon
Fix backend structure - remove duplicates
2c0fd9b
raw
history blame contribute delete
460 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 8000
# Run the service
CMD ["uvicorn", "model_service:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]