Files
simple-nanoshare/Dockerfile
T
daniel156161 52f8e78e78
Build and Push Docker Container / build-and-push (push) Successful in 1m27s
update dockerfile to use uv for packages and to run the server
2025-10-31 13:44:50 +01:00

16 lines
371 B
Docker

FROM python:3.14-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install app
COPY . /app
WORKDIR /app
# Install dependencies
RUN uv sync --locked --compile-bytecode
# Starten Sie Ihre Anwendung
EXPOSE 8000
CMD ["uv", "run", "hypercorn", "run:app", "--bind", "0.0.0.0:8000", "--workers", "1", "--websocket-ping-interval", "20", "--access-logfile", "-"]