aboutsummaryrefslogtreecommitdiff
path: root/pending/Dockerfile
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2021-11-07 15:52:44 +0100
committerbozo.kopic <bozo@kopic.xyz>2021-12-18 02:38:50 +0100
commit0702d13263bf501c1db074ce1544e60b95161210 (patch)
treeebca76946cead0ffcc742a64c15dd6f5e79958fa /pending/Dockerfile
parent56a75fcb8f5a9e4c05ccec8eb4a3345a115da441 (diff)
major rewritev0.3.0
Diffstat (limited to 'pending/Dockerfile')
-rw-r--r--pending/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/pending/Dockerfile b/pending/Dockerfile
new file mode 100644
index 0000000..0e093c5
--- /dev/null
+++ b/pending/Dockerfile
@@ -0,0 +1,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"]