18 lines
222 B
Text
18 lines
222 B
Text
|
FROM python:alpine
|
||
|
|
||
|
COPY . /workdir/
|
||
|
|
||
|
WORKDIR /workdir/
|
||
|
|
||
|
RUN pip install poetry && \
|
||
|
poetry build -f wheel
|
||
|
|
||
|
FROM python:alpine
|
||
|
|
||
|
COPY --from=0 /workdir/dist/*.whl /
|
||
|
|
||
|
RUN pip install /*.whl && \
|
||
|
rm /*.whl
|
||
|
|
||
|
USER 1001
|