Assistant / Dockerfile
Shiva-teja-chary's picture
Update Dockerfile
10a29f3 verified
raw
history blame contribute delete
327 Bytes
FROM python:3.9-slim
# Optional: install build tools only if needed
RUN apt-get update && apt-get install -y build-essential
WORKDIR /app
COPY requirements.txt .
# Faster pip install
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]