19 lines
691 B
Docker
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", "-"]
|