From 929c1b90d6b16706f9c63339f5f2a2b42332f3f3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 6 Aug 2025 15:21:03 +0200 Subject: split into two standalone containers --- web/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/Dockerfile (limited to 'web/Dockerfile') 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/ -- cgit v1.2.3