blob: a125676caaee6c4607c4beda52c6a3fec256e52d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 git gcc-mingw-w64-x86-64-win32 && \
ln -sT /usr/bin/yarnpkg /usr/bin/yarn && \
ln -sT /usr/bin/x86_64-w64-mingw32-cc-win32 /usr/bin/x86_64-w64-mingw32-cc && \
pip install -qq -r requirements.pip.dev.txt && \
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
|