aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2022-12-18 20:16:11 -0700
committerMelody Horn <melody@boringcactus.com>2022-12-18 20:16:11 -0700
commit2b32ab159c0eb9bb617154d977c155f8ca9162d9 (patch)
treee0774acced2fa253b8b6ad22c08468cf3c4290b9 /Dockerfile
parentf762714bfb7cdd45327814bc1caa8b2a41aa84fc (diff)
downloadffxiv-uptime-canon.tar.gz
ffxiv-uptime-canon.zip
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d358729
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,13 @@
+FROM rust:1.66 AS build
+
+RUN cargo install --locked trunk
+RUN rustup target add wasm32-unknown-unknown
+
+WORKDIR /usr/src/ffxiv-uptime
+COPY . .
+
+RUN trunk build
+
+FROM nginx:latest
+
+COPY --from=build /usr/src/ffxiv-uptime/dist/* /usr/share/nginx/html