Files
snake-python/Dockerfile
T
daniel156161 fbc7a50f34
Build and Push Docker Container / build-and-push (push) Successful in 1m56s
install qlite_zstd into docker container to compress gameplay database
2026-04-06 16:35:59 +02:00

19 lines
691 B
Docker

FROM ghcr.io/astral-sh/uv:python3.13-trixie-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl libzstd1 && \
curl -fsSL "https://github.com/phiresky/sqlite-zstd/releases/download/v0.3.5/sqlite_zstd-v0.3.5-x86_64-unknown-linux-gnu.tar.gz" \
| tar -xz --strip-components=1 -C /usr/local/lib "sqlite_zstd-v0.3.5-x86_64-unknown-linux-gnu/libsqlite_zstd.so" && \
rm -rf /var/lib/apt/lists/*
# 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", "--access-logfile", "-"]