aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
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