simplify Dockerfile

This commit is contained in:
Emi Vasilek 2023-11-21 01:46:27 +01:00
parent e4890b6fd8
commit cb541423c7

View file

@ -1,11 +1,12 @@
FROM alpine:3.18 AS build
RUN apk add --no-cache python3 py3-build py3-hatchling
COPY . /build
WORKDIR /build
RUN python3 -m build .
RUN apk add --no-cache python3 py3-build py3-hatchling && \
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
RUN apk add --no-cache python3 py3-pip && \
pip install /recipes-*-py3-none-any.whl && \
apk del py3-pip
ENTRYPOINT ["/usr/bin/recipes-cli"]