Divent/Dockerfile

16 lines
305 B
Docker
Raw Normal View History

2022-06-16 21:29:19 +00:00
FROM python:3.10.5 as build
2022-05-08 14:02:19 +00:00
WORKDIR /app
COPY . .
2022-06-16 21:29:19 +00:00
RUN pip install poetry && \
poetry install && \
poetry run frontman install && \
poetry build
2022-06-08 21:02:14 +00:00
FROM python:3.10.5-slim
COPY --from=build /app/dist /tmp/dist
RUN pip install /tmp/dist/*.whl && rm -rf /tmp/dist
2022-05-08 14:02:19 +00:00
2022-06-08 21:02:14 +00:00
CMD ["python", "-m", "divent"]