Initial commit

This commit is contained in:
2025-11-20 15:55:19 +11:00
committed by Woodburn
commit b99ec29d59
18 changed files with 1363 additions and 0 deletions

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
FROM --platform=$BUILDPLATFORM python:3.13-alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install curl for healthcheck
RUN apk add --no-cache curl
# Set working directory
WORKDIR /app
# Install dependencies
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --locked --no-install-project
# Copy the project into the image
ADD . /app
# Sync the project
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked
# Add mount point for data volume
ENV BASE_DIR=/data
VOLUME /data
EXPOSE 5000
ENTRYPOINT ["uv", "run"]
CMD ["main.py"]