From 99c4a3dcd0def97e979ca100a1f91a425fd02dd9 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Mon, 26 Sep 2022 23:11:28 +0200 Subject: new version cleanup --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e01a1b2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3.10-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 +RUN apt install -qy nodejs yarnpkg git gcc-mingw-w64-x86-64-win32 && \ + ln -sT /usr/bin/yarnpkg /usr/bin/yarn && \ + ln -sT /usr/bin/x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-cc +COPY . . +RUN pip install -qq -r requirements.pip.dev.txt && \ + doit clean_all && \ + doit + +FROM opcut-base as opcut-run +WORKDIR /opcut +COPY --from=opcut-build /opcut/build/py/dist/*.whl . +RUN pip install -qq *.whl && \ + rm *.whl +EXPOSE 8080 +CMD ["/usr/local/bin/opcut", "server"] -- cgit v1.2.3-70-g09d2