enhancement(): Adds quick and dirty Dockerfile
This commit is contained in:
parent
48b811795a
commit
b691e1f760
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
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
|
Loading…
Reference in a new issue