From 2c73d10e3541af5da43d942cf0a78e4ab5a8623f Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Mon, 2 Sep 2024 17:05:35 +0800 Subject: [PATCH] fix Dockerfile failure --- Dockerfile | 7 +++---- compile_and_run.bat | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index de62cf0..24d4ad7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ -FROM rnsloan/wasm-pack +FROM node:lts -RUN apt update && apt install -y nodejs npm -RUN npm install -g serve +RUN npm install -g serve wasm-pack EXPOSE 5000/tcp EXPOSE 5000/udp -RUN git clone https://github.com/bbodi/notecalc3.git . +COPY . . RUN chmod +x compile_and_run.bat CMD ./compile_and_run.bat diff --git a/compile_and_run.bat b/compile_and_run.bat index feb5351..985da86 100644 --- a/compile_and_run.bat +++ b/compile_and_run.bat @@ -1,2 +1,2 @@ wasm-pack build --dev --target no-modules frontend-web -serve . \ No newline at end of file +serve -p 5000 .