blob: 0e093c580a55f471b83d49bb1c97762dfd9ece75 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
FROM python:3.8-buster AS base
FROM base AS build
RUN apt-get update \
&& apt-get install -q -y nodejs yarnpkg \
&& ln -s /usr/bin/yarnpkg /usr/bin/yarn
COPY . /opcut
RUN cd /opcut \
&& pip install -r requirements.txt \
&& doit
FROM base AS run
COPY --from=build /opcut/dist /opcut/dist
RUN pip install /opcut/dist/*
EXPOSE 80
CMD ["opcut", "server", "--addr", "http://0.0.0.0:80"]
|