Files
snake-python/Dockerfile
T
daniel156161 3d7f92e20f
Build and Push Docker Container / build-and-push (push) Successful in 48s
use hypercorn in production without uv bload
2026-04-03 14:58:41 +02:00

14 lines
352 B
Docker

FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
# Install app
COPY . /app
WORKDIR /app
# Install dependencies
RUN uv sync --no-config --frozen --compile-bytecode
# Starten Sie Ihre Anwendung
EXPOSE 8000
CMD [".venv/bin/hypercorn", "asgi:app", "--bind", "0.0.0.0:8000", "--workers", "1", "--websocket-ping-interval", "20", "--access-logfile", "-"]