-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extension: docker image and build instructions for firefox (#1414)
* feat(extension): docker image and build instructions for firefox * feat(firefox): separating build in different stages and updating docs * feat: ensure amd64 architecture * feat: tweaking options on webpack
- Loading branch information
1 parent
8a4ffed
commit e19b7da
Showing
3 changed files
with
59 additions
and
47 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
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM --platform=linux/amd64 rust:1.79 AS builder | ||
|
||
WORKDIR /app | ||
|
||
# Installing required packages | ||
RUN apt update && apt install -y nodejs npm clang pkg-config libssl-dev protobuf-compiler curl | ||
RUN npm install -g yarn | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -s -- -y | ||
|
||
# Copying packages and scripts related to the monorepo | ||
COPY .yarnrc.yml tsconfig.base.json package.json yarn.lock . | ||
COPY ./.yarn ./.yarn | ||
COPY ./packages ./packages | ||
COPY ./scripts ./scripts | ||
COPY ./apps/extension/package.json ./apps/extension/package.json | ||
|
||
# Installing packages | ||
RUN yarn | ||
WORKDIR /app/apps/extension | ||
|
||
# Building wasm files | ||
COPY ./apps/extension/scripts ./scripts | ||
RUN yarn wasm:build | ||
|
||
# Building extension dist files | ||
COPY ./apps/extension . | ||
RUN yarn | ||
|
||
FROM builder AS firefox | ||
RUN yarn build:firefox | ||
|
||
FROM builder AS chrome | ||
RUN yarn build:chrome | ||
|
||
|
e19b7da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://6762fe5c61512325c7d39ebc--namada-interface-dev.netlify.app