2022-08-16 18:07:29 +00:00
|
|
|
FROM python:3.10.6-slim as build
|
2022-05-08 14:02:19 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2022-06-17 09:07:10 +00:00
|
|
|
RUN pip install poetry && 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"]
|