Pārlūkot izejas kodu

Merge pull request #64 from pyth-network/abehjati/wasm-docker-cache-bugfix

wasm docker cache bugfix
Ali Behjati 3 gadi atpakaļ
vecāks
revīzija
248e525643
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 10 10
      Dockerfile.wasm

+ 10 - 10
Dockerfile.wasm

@@ -25,52 +25,52 @@ ARG SED_REMOVE_INVALID_REFERENCE="/^\s*wasm.__wbg_systeminstruction_free(ptr);$/
 
 # Compile Wormhole
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=bridge/target \
+	--mount=type=cache,target=solana/bridge/target \
     cd solana/bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
     cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE bridge_bg.js
 
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=bridge/target \
+	--mount=type=cache,target=solana/bridge/target \
     cd solana/bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
 
 # Compile Token Bridge
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=modules/token_bridge/target \
+	--mount=type=cache,target=solana/modules/token_bridge/target \
     cd solana/modules/token_bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
     cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE token_bridge_bg.js
 
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=modules/token_bridge/target \
+	--mount=type=cache,target=solana/modules/token_bridge/target \
     cd solana/modules/token_bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
 
 # Compile Migration
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=migration/target \
+	--mount=type=cache,target=solana/migration/target \
     cd solana/migration && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
     cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE wormhole_migration_bg.js
 
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=migration/target \
+	--mount=type=cache,target=solana/migration/target \
     cd solana/migration && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
 
 # Compile NFT Bridge
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=modules/nft_bridge/target \
+	--mount=type=cache,target=solana/modules/nft_bridge/target \
     cd solana/modules/nft_bridge/program && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked && \
     cd bundler && sed -i $SED_REMOVE_INVALID_REFERENCE nft_bridge_bg.js
 
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=modules/nft_bridge/target \
+	--mount=type=cache,target=solana/modules/nft_bridge/target \
     cd solana/modules/nft_bridge/program && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked
 
 # Compile pyth2wormhole
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=pyth2wormhole/target \
+	--mount=type=cache,target=solana/pyth2wormhole/target \
     cd solana/pyth2wormhole/program \
     && /usr/local/cargo/bin/wasm-pack build --target bundler -d bundler -- --features wasm --locked
 
 RUN --mount=type=cache,target=/root/.cache \
-	--mount=type=cache,target=pyth2wormhole/target \
+	--mount=type=cache,target=solana/pyth2wormhole/target \
     cd solana/pyth2wormhole/program \
     && /usr/local/cargo/bin/wasm-pack build --target nodejs -d nodejs -- --features wasm --locked