-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: fix(ci): corepack install separately
- Loading branch information
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
FROM rust:1.83-alpine3.21@sha256:9ab8f4eab808b1383c7e60a15fbf291e949fec85c3f98c34fb145b16c4ced0a1 as wasm | ||
RUN apk add musl-dev protoc protobuf-dev openssl-dev cmake build-base binaryen | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN cargo install [email protected] | ||
WORKDIR /build/fadroma-namada | ||
COPY ./fadroma/packages/namada/Cargo.toml ./fadroma/packages/namada/Cargo.lock . | ||
RUN cat Cargo.toml && mkdir -p src && touch src/lib.rs && cargo fetch | ||
COPY ./fadroma/packages/namada/src ./src | ||
RUN PATH=$PATH:~/.cargo/bin wasm-pack build --release --target web \ | ||
from rust:1.83-alpine3.21@sha256:9ab8f4eab808b1383c7e60a15fbf291e949fec85c3f98c34fb145b16c4ced0a1 as wasm | ||
run apk add musl-dev protoc protobuf-dev openssl-dev cmake build-base binaryen | ||
run rustup target add wasm32-unknown-unknown | ||
run cargo install [email protected] | ||
workdir /build/fadroma-namada | ||
copy ./fadroma/packages/namada/Cargo.toml ./fadroma/packages/namada/Cargo.lock . | ||
run cat Cargo.toml && mkdir -p src && touch src/lib.rs && cargo fetch | ||
copy ./fadroma/packages/namada/src ./src | ||
run PATH=$PATH:~/.cargo/bin wasm-pack build --release --target web \ | ||
&& rm -rf target | ||
|
||
FROM node:22.4-alpine3.20 | ||
RUN apk add git | ||
WORKDIR /app | ||
ADD . ./ | ||
RUN pwd && ls -al | ||
run corepack install && pnpm --version && corepack up && pnpm --version && pnpm i -P | ||
COPY --from=wasm /build/fadroma-namada/pkg/fadroma_namada_bg.wasm ./fadroma/packages/namada/pkg/fadroma_namada_bg.wasm | ||
RUN pwd && ls -al | ||
from node:22.4-alpine3.20 | ||
run apk add git | ||
workdir /app | ||
add . ./ | ||
run pwd && ls -al | ||
run corepack install && corepack up && ~/.cache/node/corepack/v1/pnpm/10.0.0-rc.0/bin/pnpm.cjs i -P | ||
copy --from=wasm /build/fadroma-namada/pkg/fadroma_namada_bg.wasm ./fadroma/packages/namada/pkg/fadroma_namada_bg.wasm | ||
run pwd && ls -al |