fix: Do not install development dependencies.

This commit is contained in:
Elisiário Couto
2025-09-01 22:46:55 +01:00
parent 6b2c19778b
commit 73d6bd32db
2 changed files with 5 additions and 6 deletions

View File

@@ -11,12 +11,10 @@ RUN --mount=type=cache,target=/root/.cache/uv \
COPY . /app COPY . /app
RUN --mount=type=cache,target=/root/.cache/uv \ 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 FROM python:3.13-alpine
WORKDIR /app
LABEL org.opencontainers.image.source="https://github.com/elisiariocouto/leggen" LABEL org.opencontainers.image.source="https://github.com/elisiariocouto/leggen"
LABEL org.opencontainers.image.authors="Elisiário Couto <elisiario@couto.io>" LABEL org.opencontainers.image.authors="Elisiário Couto <elisiario@couto.io>"
LABEL org.opencontainers.image.licenses="MIT" 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.description="An Open Banking CLI"
LABEL org.opencontainers.image.url="https://github.com/elisiariocouto/leggen" 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 COPY --from=builder --chown=app:app /app/.venv /app/.venv
# Run the application
ENTRYPOINT ["/app/.venv/bin/leggen"] ENTRYPOINT ["/app/.venv/bin/leggen"]

View File

@@ -1,7 +1,7 @@
import sys import sys
import tomllib
import click import click
import tomllib
from leggen.utils.text import error from leggen.utils.text import error