add Dockerfile for Wasm

This commit is contained in:
2024-08-05 07:16:24 +03:00
parent 96e942ccc0
commit f1ad20d903
+10
View File
@@ -0,0 +1,10 @@
FROM gradle:8.4.0-jdk17 AS builder
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle wasmJsBrowserDistribution --no-daemon
FROM nginx:alpine
COPY --from=builder /home/gradle/src/composeApp/build/dist/wasmJs/productionExecutable/ /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]