1
Fork 0
mirror of https://github.com/Steffo99/emblematic.git synced 2024-11-30 18:24:19 +00:00
emblematic/Dockerfile

28 lines
857 B
Text
Raw Normal View History

2023-03-07 22:54:05 +00:00
FROM python:3-alpine AS system
RUN apk add --update build-base python3-dev py-pip musl-dev
RUN pip install "poetry"
FROM system AS workdir
WORKDIR /usr/src/emblematic
FROM workdir AS dependencies
COPY pyproject.toml ./pyproject.toml
COPY poetry.lock ./poetry.lock
RUN poetry install --no-root --no-dev
FROM dependencies AS package
COPY . .
RUN poetry install
FROM package AS entrypoint
ENV PYTHONUNBUFFERED=1
2023-03-10 22:51:35 +00:00
ENTRYPOINT ["poetry", "run", "python", "-m", "emblematic"]
CMD []
2023-03-07 22:54:05 +00:00
FROM entrypoint AS labels
LABEL org.opencontainers.image.title="emblematic"
LABEL org.opencontainers.image.description="Generate emblems from an icon and a background"
2023-03-07 22:54:05 +00:00
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
LABEL org.opencontainers.image.url="https://github.com/Steffo99/emblematic/"
LABEL org.opencontainers.image.authors="Stefano Pigozzi <me@steffo.eu>"