13 lines
371 B
Docker
13 lines
371 B
Docker
FROM alpine:3.18 AS build
|
|
COPY . /build
|
|
WORKDIR /build
|
|
RUN apk add --no-cache python3 py3-build py3-hatchling && \
|
|
python3 -m build .
|
|
|
|
FROM alpine:3.18
|
|
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 && \
|
|
rm -r /mnt
|
|
ENTRYPOINT ["/usr/bin/recipes-cli"]
|