mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Slightly better docker support
So you can run yarn install in the docker container
This commit is contained in:
parent
6e6e7d82c8
commit
6def288521
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,4 +4,5 @@
|
|||||||
/packages
|
/packages
|
||||||
/deploys
|
/deploys
|
||||||
/node_modules
|
/node_modules
|
||||||
|
/docker_node_modules
|
||||||
/pkg/control
|
/pkg/control
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"lint": "eslint src/",
|
"lint": "eslint src/",
|
||||||
"build": "yarn run setversion && electron-builder",
|
"build": "yarn run setversion && electron-builder",
|
||||||
|
"indocker": "scripts/indocker.sh",
|
||||||
|
"docker:build": "yarn run indocker yarn run build",
|
||||||
|
"docker:install": "yarn run indocker yarn install",
|
||||||
"clean": "rimraf webapp.asar dist packages deploys"
|
"clean": "rimraf webapp.asar dist packages deploys"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -6,7 +6,7 @@ docker run --rm -ti \
|
|||||||
--env ELECTRON_CACHE="/root/.cache/electron" \
|
--env ELECTRON_CACHE="/root/.cache/electron" \
|
||||||
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
||||||
-v ${PWD}:/project \
|
-v ${PWD}:/project \
|
||||||
-v ${PWD##*/}-node-modules:/project/node_modules \
|
-v ${PWD}/docker_node_modules:/project/node_modules \
|
||||||
-v ~/.cache/electron:/root/.cache/electron \
|
-v ~/.cache/electron:/root/.cache/electron \
|
||||||
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
||||||
electronuserland/builder yarn run build
|
electronuserland/builder "$@"
|
Loading…
x
Reference in New Issue
Block a user