From 7b3aa25c955dd7456a4ecee9a0fac080d7010029 Mon Sep 17 00:00:00 2001
From: Emi Vasilek <emi.vasilek@gmail.com>
Date: Fri, 11 Oct 2024 22:20:08 +0200
Subject: [PATCH] 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"]