blob: f6ccbef379228ba05ee3763f8a7fe4a75f2e59c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|