Compare commits

...

2 commits

Author SHA1 Message Date
e35bc3852b update URLs 2024-10-11 22:21:30 +02:00
7b3aa25c95 Dockerfile: use python image instead of alpine, update 2024-10-11 22:20:08 +02:00
3 changed files with 9 additions and 11 deletions

View file

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

View file

@ -17,12 +17,12 @@ pip install dist/comfy-recipes-*-py3-none-any.whl
## Building the docker container ## Building the docker container
```sh ```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 The container can now be ran
```sh ```sh
docker run --rm codeberg.org/comfy.city/comfy-recipes docker run --rm git.comfy.city/Emi/comfy-recipes:local
``` ```
## Building the documentation ## Building the documentation

View file

@ -17,9 +17,9 @@ classifiers = [
license = { file = "LICENSE" } license = { file = "LICENSE" }
[project.urls] [project.urls]
Homepage = "https://codeberg.org/comfy.city/comfy-recipes" Homepage = "https://git.comfy.city/Emi/comfy-recipes"
Repository = "https://codeberg.org/comfy.city/comfy-recipes.git" Repository = "https://git.comfy.city/Emi/comfy-recipes.git"
Issues = "https://codeberg.org/comfy.city/comfy-recipes/issues" Issues = "https://git.comfy.city/Emi/comfy-recipes/issues"
Documentation = "https://comfy.city/comfy-recipes/docs" Documentation = "https://comfy.city/comfy-recipes/docs"
[project.scripts] [project.scripts]