Skip to content

Commit

Permalink
wip: fix(ci): corepack install separately
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Jan 6, 2025
1 parent c7b9321 commit c04d9d6
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Dockerfile.public
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

0 comments on commit c04d9d6

Please sign in to comment.