Files
genai_gateway/dockerfile

19 lines
350 B
Plaintext

# Use official Python image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the FastAPI app
COPY main.py .
# Expose port
EXPOSE 8000
# Start FastAPI with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]