mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
mascara - ready to deploy via docker
This commit is contained in:
parent
a6c6ecf275
commit
4b8324620e
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
builds
|
||||||
|
development
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
FROM node:6
|
||||||
|
MAINTAINER kumavis
|
||||||
|
|
||||||
|
# setup app dir
|
||||||
|
RUN mkdir -p /www/
|
||||||
|
WORKDIR /www/
|
||||||
|
|
||||||
|
# install dependencies
|
||||||
|
COPY ./package.json /www/package.json
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# copy over app dir
|
||||||
|
COPY ./ /www/
|
||||||
|
|
||||||
|
# run tests
|
||||||
|
# RUN npm test
|
||||||
|
|
||||||
|
# build app
|
||||||
|
RUN npm run dist
|
||||||
|
|
||||||
|
# start server
|
||||||
|
CMD node mascara/example/server.js
|
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
metamascara:
|
||||||
|
build: ./
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "9001"
|
||||||
|
environment:
|
||||||
|
MASCARA_ORIGIN: "https://zero.metamask.io"
|
||||||
|
VIRTUAL_PORT: "9001"
|
||||||
|
VIRTUAL_HOST: "zero.metamask.io"
|
||||||
|
LETSENCRYPT_HOST: "zero.metamask.io"
|
||||||
|
LETSENCRYPT_EMAIL: "admin@metamask.io"
|
@ -8,10 +8,10 @@ module.exports = createMetamascaraServer
|
|||||||
function createMetamascaraServer(){
|
function createMetamascaraServer(){
|
||||||
|
|
||||||
// start bundlers
|
// start bundlers
|
||||||
const metamascaraBundle = createBundle('./src/mascara.js')
|
const metamascaraBundle = createBundle(__dirname + '/../src/mascara.js')
|
||||||
const proxyBundle = createBundle('./src/proxy.js')
|
const proxyBundle = createBundle(__dirname + '/../src/proxy.js')
|
||||||
const uiBundle = createBundle('./src/ui.js')
|
const uiBundle = createBundle(__dirname + '/../src/ui.js')
|
||||||
const backgroundBuild = createBundle('./src/background.js')
|
const backgroundBuild = createBundle(__dirname + '/../src/background.js')
|
||||||
|
|
||||||
// serve bundles
|
// serve bundles
|
||||||
const server = express()
|
const server = express()
|
||||||
|
Loading…
Reference in New Issue
Block a user