This repository has been archived on 2025-05-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
PyCrypCli/Dockerfile
2022-03-15 23:57:48 +01:00

27 lines
534 B
Docker

FROM python:3.10-alpine AS builder
RUN apk add --no-cache build-base gcc musl-dev libffi-dev python3-dev openssl-dev cargo
WORKDIR /build
RUN pip install poetry
COPY pyproject.toml /build/
COPY poetry.lock /build/
RUN poetry install -n --no-root
COPY README.md /build/
COPY PyCrypCli /build/PyCrypCli
RUN poetry build
FROM python:3.10-alpine
LABEL org.opencontainers.image.source=https://github.com/Defelo/PyCrypCli
COPY --from=builder /build/dist/*.whl /tmp/
RUN pip install /tmp/*.whl && rm /tmp/*.whl
CMD ["pycrypcli"]