Dockerfile: use python image instead of alpine, update

This commit is contained in:
Emi Vasilek 2024-10-11 22:20:08 +02:00
parent 88f801cadb
commit 7b3aa25c95

View file

@ -1,13 +1,11 @@
FROM alpine:3.18 AS build
FROM python:3.13-alpine AS build
COPY . /build
WORKDIR /build
RUN apk add --no-cache python3 py3-build py3-hatchling && \
RUN pip install build hatchling && \
python3 -m build .
FROM alpine:3.18
FROM python:3.13-alpine
COPY --from=build /build/dist/ /mnt
RUN apk add --no-cache python3 py3-pip && \
pip install /mnt/comfy_recipes-*-py3-none-any.whl && \
apk del py3-pip && \
RUN pip install /mnt/comfy_recipes-*-py3-none-any.whl && \
rm -r /mnt
ENTRYPOINT ["/usr/bin/recipes-cli"]