Add Dockerfile

This commit is contained in:
Emi Vasilek 2023-11-20 11:05:39 +01:00
parent 3ae3dfe922
commit 7fb3a1c0e9

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM alpine:3.18 AS build
RUN apk add --no-cache python3 py3-build py3-hatchling
COPY . /build
WORKDIR /build
RUN python3 -m build .
FROM alpine:3.18
RUN apk add --no-cache py3-pip
COPY --from=build /build/dist/recipes-*-py3-none-any.whl /
RUN pip install /recipes-*-py3-none-any.whl
ENTRYPOINT ["/usr/bin/recipes-cli"]