Dockerfile: use python image instead of alpine, update
This commit is contained in:
parent
88f801cadb
commit
7b3aa25c95
1 changed files with 4 additions and 6 deletions
10
Dockerfile
10
Dockerfile
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue