diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-11-07 15:52:44 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-12-18 02:38:50 +0100 |
| commit | 0702d13263bf501c1db074ce1544e60b95161210 (patch) | |
| tree | ebca76946cead0ffcc742a64c15dd6f5e79958fa /Dockerfile.heroku | |
| parent | 56a75fcb8f5a9e4c05ccec8eb4a3345a115da441 (diff) | |
major rewritev0.3.0
Diffstat (limited to 'Dockerfile.heroku')
| -rw-r--r-- | Dockerfile.heroku | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
