simplify Dockerfile
This commit is contained in:
parent
e4890b6fd8
commit
cb541423c7
1 changed files with 5 additions and 4 deletions
|
@ -1,11 +1,12 @@
|
||||||
FROM alpine:3.18 AS build
|
FROM alpine:3.18 AS build
|
||||||
RUN apk add --no-cache python3 py3-build py3-hatchling
|
|
||||||
COPY . /build
|
COPY . /build
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN python3 -m build .
|
RUN apk add --no-cache python3 py3-build py3-hatchling && \
|
||||||
|
python3 -m build .
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:3.18
|
||||||
RUN apk add --no-cache py3-pip
|
|
||||||
COPY --from=build /build/dist/recipes-*-py3-none-any.whl /
|
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"]
|
ENTRYPOINT ["/usr/bin/recipes-cli"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue