feature/1-self-sovereign-passports-for-user-identity #2
1 changed files with 10 additions and 7 deletions
|
|
@ -2,17 +2,20 @@
|
|||
FROM docker.io/rust:1.90-slim AS wasm-builder
|
||||
WORKDIR /app
|
||||
|
||||
# Set CARGO_HOME to ensure cargo uses our configuration
|
||||
ENV CARGO_HOME=/root/.cargo
|
||||
|
||||
# Install wasm32 target and wasm-pack
|
||||
RUN rustup target add wasm32-unknown-unknown
|
||||
RUN cargo install wasm-pack
|
||||
RUN cargo install wasm-pack --root /usr/local
|
||||
|
||||
# Configure cargo registry for sharenet-sh-forgejo
|
||||
RUN mkdir -p /root/.cargo
|
||||
RUN echo '[registries.sharenet-sh-forgejo]' > /root/.cargo/config.toml
|
||||
RUN echo 'index = "sparse+https://git.sharenet.sh/api/packages/devteam/cargo/"' >> /root/.cargo/config.toml
|
||||
RUN echo '' >> /root/.cargo/config.toml
|
||||
RUN echo '[net]' >> /root/.cargo/config.toml
|
||||
RUN echo 'git-fetch-with-cli = true' >> /root/.cargo/config.toml
|
||||
RUN mkdir -p $CARGO_HOME
|
||||
RUN echo '[registries.sharenet-sh-forgejo]' > $CARGO_HOME/config.toml
|
||||
RUN echo 'index = "sparse+https://git.sharenet.sh/api/packages/devteam/cargo/"' >> $CARGO_HOME/config.toml
|
||||
RUN echo '' >> $CARGO_HOME/config.toml
|
||||
RUN echo '[net]' >> $CARGO_HOME/config.toml
|
||||
RUN echo 'git-fetch-with-cli = true' >> $CARGO_HOME/config.toml
|
||||
|
||||
# Copy WASM source and build
|
||||
COPY wasm/Cargo.toml wasm/Cargo.lock ./wasm/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue