aboutsummaryrefslogtreecommitdiff
path: root/gerboweb/Containerfile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-07-05 22:31:09 +0200
committerjaseg <git@jaseg.de>2022-07-05 22:31:09 +0200
commit00de98d5e3bc836715d04b7d8b8934389062f63d (patch)
tree51f6ad21a4387fb1ed4fc77c825fd694f361a901 /gerboweb/Containerfile
parent3ba932209fc33206a28483d07fb0e108d1b16a2b (diff)
downloadgerbolyze-00de98d5e3bc836715d04b7d8b8934389062f63d.tar.gz
gerbolyze-00de98d5e3bc836715d04b7d8b8934389062f63d.tar.bz2
gerbolyze-00de98d5e3bc836715d04b7d8b8934389062f63d.zip
gerboweb: Add prod container build
Diffstat (limited to 'gerboweb/Containerfile')
-rw-r--r--gerboweb/Containerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/gerboweb/Containerfile b/gerboweb/Containerfile
new file mode 100644
index 0000000..5733b48
--- /dev/null
+++ b/gerboweb/Containerfile
@@ -0,0 +1,18 @@
+FROM docker.io/archlinux:latest
+MAINTAINER gerbolyze@jaseg.de
+RUN pacman --noconfirm -Syu
+RUN pacman --noconfirm -Sy pugixml opencv pango cairo git python make clang cargo python-pip base-devel gerbv rsync tmux uwsgi uwsgi-plugin-python
+RUN cargo install usvg resvg
+RUN python3 -m pip install pip==21.3.1
+RUN python3 -m pip install flask numpy lxml wasmtime svg_flatten_wasi resvg_wasi flask_wtf
+RUN --mount=type=bind,rw,destination=/git \
+ cd /git/gerbonara && \
+ python3 -m pip --disable-pip-version-check install . && \
+ cd /git && \
+ python3 -m pip --disable-pip-version-check install .
+RUN mkdir /gerboweb
+ADD ["gerboweb/uwsgi-gerboweb.ini","gerboweb/gerboweb.py","gerboweb/job_processor.py","gerboweb/job_queue.py","/gerboweb/"]
+ADD ["gerboweb/static","/gerboweb/"]
+ADD ["gerboweb/templates","/gerboweb/"]
+ADD gerboweb/gerboweb_prod.cfg /gerboweb/gerboweb.cfg
+ENTRYPOINT uwsgi --ini /gerboweb/uwsgi-gerboweb.ini --chmod-socket=660 --socket=/run/uwsgi/socket