Skip to content

Commit

Permalink
Fix platform=amd64 syntax (#76)
Browse files Browse the repository at this point in the history
Docker still requires amd64 to build these steps for some reason, but the syntax has changed in more recent versions. I don't know why or remember from 2 years ago. But here we are.
  • Loading branch information
ekzhang authored Jul 18, 2024
1 parent cf94862 commit f3d72a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ COPY . .
RUN cargo test --release
RUN cargo build --release

FROM amd64/rust:alpine AS wasm
FROM --platform=amd64 rust:alpine AS wasm
WORKDIR /home/rust/src
RUN apk --no-cache add curl musl-dev
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
COPY . .
RUN wasm-pack build --target web rustpad-wasm

FROM amd64/node:lts-alpine AS frontend
FROM --platform=amd64 node:lts-alpine AS frontend
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
COPY --from=wasm /home/rust/src/rustpad-wasm/pkg rustpad-wasm/pkg
Expand Down

0 comments on commit f3d72a6

Please sign in to comment.