fix 0.1.1 (#17)

Reviewed-on: https://hattori.ztsh.eu/iac/karl/pulls/17
This commit is contained in:
Piotr Dec 2025-12-12 21:40:03 +01:00
parent d3e990384d
commit e2fd185971
47 changed files with 1043 additions and 35 deletions

33
Dockerfile Normal file
View file

@ -0,0 +1,33 @@
FROM ghcr.io/astral-sh/uv:0.9-python3.12-alpine AS builder
WORKDIR /app
RUN apk update \
&& apk add gcc python3-dev musl-dev linux-headers
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --no-install-workspace
ADD . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked
FROM python:3.12-alpine3.22
RUN apk update --no-cache \
&& apk add --no-cache git
COPY --from=builder --chown=app:app /app/.venv /app/.venv
COPY --from=builder --chown=app:app /app/src /app/src
ENV PYTHONPATH="/app"
EXPOSE 8081
WORKDIR /app
ENTRYPOINT ["/app/.venv/bin/python"]
CMD ["/app/src/karl/__init__.py"]