diff --git a/Dockerfile b/Dockerfile index 0a2faeb..da2e067 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,12 +11,10 @@ RUN --mount=type=cache,target=/root/.cache/uv \ COPY . /app RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --frozen --no-editable + uv sync --frozen --no-editable --no-group dev FROM python:3.13-alpine -WORKDIR /app - LABEL org.opencontainers.image.source="https://github.com/elisiariocouto/leggen" LABEL org.opencontainers.image.authors="Elisiário Couto " LABEL org.opencontainers.image.licenses="MIT" @@ -24,8 +22,9 @@ LABEL org.opencontainers.image.title="leggen" LABEL org.opencontainers.image.description="An Open Banking CLI" LABEL org.opencontainers.image.url="https://github.com/elisiariocouto/leggen" -# Copy the environment, but not the source code +WORKDIR /app +ENV PATH="/app/.venv/bin:$PATH" + COPY --from=builder --chown=app:app /app/.venv /app/.venv -# Run the application ENTRYPOINT ["/app/.venv/bin/leggen"] diff --git a/leggen/utils/config.py b/leggen/utils/config.py index 03a6f32..5f647df 100644 --- a/leggen/utils/config.py +++ b/leggen/utils/config.py @@ -1,7 +1,7 @@ import sys +import tomllib import click -import tomllib from leggen.utils.text import error