mirror of
https://github.com/elisiariocouto/leggen.git
synced 2025-12-13 11:22:21 +00:00
25 lines
893 B
Docker
25 lines
893 B
Docker
FROM python:3.12-alpine as builder
|
|
ARG POETRY_VERSION="1.7.1"
|
|
|
|
WORKDIR /app
|
|
RUN apk add --no-cache gcc libffi-dev musl-dev && \
|
|
pip install --no-cache-dir --upgrade pip && \
|
|
pip install --no-cache-dir -q poetry=="${POETRY_VERSION}"
|
|
COPY . .
|
|
RUN poetry config virtualenvs.create false && poetry build -f wheel
|
|
|
|
FROM python:3.12-alpine
|
|
|
|
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.licenses="MIT"
|
|
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"
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/dist/ /app/
|
|
RUN pip --no-cache-dir install leggen*.whl && \
|
|
rm leggen*.whl
|
|
ENTRYPOINT ["/usr/local/bin/leggen"]
|