summaryrefslogtreecommitdiff
path: root/web/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'web/Dockerfile')
-rw-r--r--web/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/web/Dockerfile b/web/Dockerfile
new file mode 100644
index 0000000..d80a89e
--- /dev/null
+++ b/web/Dockerfile
@@ -0,0 +1,18 @@
+FROM mtg-print AS mtg-print
+FROM nginx:alpine
+
+RUN \
+ mkdir -p /var/www/html/print && \
+ mkdir -p /var/www/html/print/vendor && \
+ chmod 557 /var/www/html/print
+
+COPY --from=mtg-print \
+ /var/www/html/AllPrintings.sqlite /var/www/html/print.php \
+ /var/www/html/print/
+
+COPY --from=mtg-print \
+ /var/www/html/vendor/ \
+ /var/www/html/print/vendor/
+
+COPY default.conf.template /etc/nginx/templates/
+COPY index.php /var/www/html/