From 036398729adb09c142dfd53a84c9c0845cad5aad Mon Sep 17 00:00:00 2001 From: Elijah Potter Date: Wed, 18 Dec 2024 11:53:41 -0700 Subject: [PATCH] build(Dockerfile): set correct `wasm-pack` target and remove useless copies --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7299c257..d0fdc248 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh COPY . . WORKDIR /usr/build/harper-wasm -RUN wasm-pack build --release +RUN wasm-pack build --release --target web FROM node:slim AS node-build @@ -32,10 +32,6 @@ RUN yarn install && yarn build FROM node:slim COPY --from=node-build /usr/build/packages/web/build /usr/build/packages/web/build -COPY --from=node-build /usr/build/packages/web/package.json /usr/build/packages/web/package.json -COPY --from=node-build /usr/build/packages/package.json /usr/build/packages/package.json -COPY --from=node-build /usr/build/packages/yarn.lock /usr/build/yarn.lock -COPY --from=node-build /usr/build/packages/node_modules /usr/build/node_modules WORKDIR /usr/build/packages/web