From 0702d13263bf501c1db074ce1544e60b95161210 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 7 Nov 2021 15:52:44 +0100 Subject: major rewrite --- Dockerfile.heroku | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile.heroku (limited to 'Dockerfile.heroku') diff --git a/Dockerfile.heroku b/Dockerfile.heroku new file mode 100644 index 0000000..f6ccbef --- /dev/null +++ b/Dockerfile.heroku @@ -0,0 +1,18 @@ +FROM python:3.9-slim-bullseye as opcut-base +WORKDIR /opcut +RUN apt update -qy && \ + apt install -qy pkg-config gcc libcairo2-dev + +FROM opcut-base as opcut-build +WORKDIR /opcut +COPY . . +RUN apt install -qy nodejs yarnpkg && \ + ln -sT /usr/bin/yarnpkg /usr/bin/yarn && \ + pip install -qq -r requirements.pip.dev.txt && \ + doit + +FROM opcut-base as opcut-run +WORKDIR /opcut +COPY --from=opcut-build /opcut/build/dist/*.whl . +RUN pip install -qq *.whl && \ + rm *.whl -- cgit v1.2.3-70-g09d2