use hypercorn in production without uv bload
Build and Push Docker Container / build-and-push (push) Successful in 48s
Build and Push Docker Container / build-and-push (push) Successful in 48s
This commit is contained in:
+4
-4
@@ -1,7 +1,5 @@
|
||||
FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
|
||||
|
||||
# RUN apk add --no-cache build-base
|
||||
|
||||
# Install app
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
@@ -9,5 +7,7 @@ WORKDIR /app
|
||||
# Install dependencies
|
||||
RUN uv sync --no-config --frozen --compile-bytecode
|
||||
|
||||
# Run Battlesnake
|
||||
CMD ["uv", "run", "main.py"]
|
||||
# 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", "-"]
|
||||
|
||||
Reference in New Issue
Block a user