Quillan-Ronin / Dockerfile
CrashOverrideX's picture
Add files using upload-large-folder tool
1c70d34 verified
raw
history blame contribute delete
463 Bytes
# Dockerfile
FROM python:3.10-slim
WORKDIR /app
# Install system deps if needed
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 8000
# Command to run the application
CMD ["uvicorn", "serve:app", "--host", "0.0.0.0", "--port", "8000"]