Skip to content

Instantly share code, notes, and snippets.

@rpappalax
Created January 30, 2026 15:33
Show Gist options
  • Select an option

  • Save rpappalax/b643555bf6f04447c7397462cbc9123c to your computer and use it in GitHub Desktop.

Select an option

Save rpappalax/b643555bf6f04447c7397462cbc9123c to your computer and use it in GitHub Desktop.
Dockerfile
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=8080
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment