mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 17:53:19 +08:00
chore: add dockerfile to build extension
This commit is contained in:
@@ -1 +1,2 @@
|
||||
node_modules/
|
||||
Dockerfile
|
||||
|
||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM nikolaik/python-nodejs:python3.9-nodejs14 as build
|
||||
LABEL maintainer="ux@blockstack.com"
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y zip make && \
|
||||
./build-ext.sh
|
||||
|
||||
FROM alpine:latest
|
||||
COPY --from=build extension.zip .
|
||||
|
||||
CMD sleep 60
|
||||
14
README.md
14
README.md
@@ -25,4 +25,16 @@ For development instructions of specific packages, see the `README` in each pack
|
||||
## Building browser extensions
|
||||
|
||||
1. From the root of this repository, in the command line, run `sh build-ext.sh`
|
||||
2. The extension will be packaged as `extension.zip` inside this folder.
|
||||
2. The extension will be packaged as `extension.zip` inside this folder.
|
||||
|
||||
### Optional - Build browser extensions using Docker
|
||||
|
||||
1. Build the docker image locally:
|
||||
```bash
|
||||
docker build . -t ux
|
||||
```
|
||||
|
||||
1. Copy the built extensions to your local machine:
|
||||
```bash
|
||||
docker run -d --name ux ux && docker cp ux:extension.zip . && docker rm -f ux
|
||||
```
|
||||
|
||||
0
build-ext.sh
Normal file → Executable file
0
build-ext.sh
Normal file → Executable file
Reference in New Issue
Block a user