From 7b3aa25c955dd7456a4ecee9a0fac080d7010029 Mon Sep 17 00:00:00 2001 From: Emi Vasilek Date: Fri, 11 Oct 2024 22:20:08 +0200 Subject: [PATCH 1/2] Dockerfile: use python image instead of alpine, update --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4621d8..c9bddac 100644 --- a/Dockerfile +++ b/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"] From e35bc3852b47dfd70286f5210eb7a893c1389aa6 Mon Sep 17 00:00:00 2001 From: Emi Vasilek Date: Fri, 11 Oct 2024 22:21:30 +0200 Subject: [PATCH 2/2] update URLs --- README.md | 4 ++-- pyproject.toml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aa2dec4..3e886c8 100644 --- a/README.md +++ b/README.md @@ -17,12 +17,12 @@ pip install dist/comfy-recipes-*-py3-none-any.whl ## Building the docker container ```sh -docker build -t codeberg.org/comfy.city/comfy-recipes . +docker buildx build -t git.comfy.city/Emi/comfy-recipes:local . ``` The container can now be ran ```sh -docker run --rm codeberg.org/comfy.city/comfy-recipes +docker run --rm git.comfy.city/Emi/comfy-recipes:local ``` ## Building the documentation diff --git a/pyproject.toml b/pyproject.toml index 99e6d9f..7cedace 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,9 +17,9 @@ classifiers = [ license = { file = "LICENSE" } [project.urls] -Homepage = "https://codeberg.org/comfy.city/comfy-recipes" -Repository = "https://codeberg.org/comfy.city/comfy-recipes.git" -Issues = "https://codeberg.org/comfy.city/comfy-recipes/issues" +Homepage = "https://git.comfy.city/Emi/comfy-recipes" +Repository = "https://git.comfy.city/Emi/comfy-recipes.git" +Issues = "https://git.comfy.city/Emi/comfy-recipes/issues" Documentation = "https://comfy.city/comfy-recipes/docs" [project.scripts]