Skip to content

Commit

Permalink
build(Dockerfile): set correct wasm-pack target and remove useless …
Browse files Browse the repository at this point in the history
…copies
  • Loading branch information
elijah-potter committed Dec 18, 2024
1 parent 5054756 commit 0363987
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 0363987

Please sign in to comment.