Divent/Dockerfile

13 lines
227 B
Docker
Raw Normal View History

2022-05-08 14:02:19 +00:00
FROM python:3.10.7-slim as build
WORKDIR /app
COPY . .
RUN pip install poetry && poetry build
FROM python:3.10.7-slim
COPY --from=build /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
CMD ["divent"]