Create Dockerfile
Browse files12345678910111213141516171819202122232425262728FROM python:3.11-slim
WORKDIR /app
# Install system dependenciesRUN apt-get update && apt-get install -y \ build-essential \ curl \ libcurl4-openssl-dev \ libssl-dev \ && rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cacheCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the applicationCOPY . .
# Expose the port the app runs onEXPOSE 9000
# Environment variables with defaultsENV OPENAI_API_KEY=NoneENV ENVIRONMENT="production"
# Command to run the applicationCMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9000"] DockerfileAdded+28