Browse Source

Extend libcc Dockerfile for Electron Linux build

Kevin Sawicki 7 years ago
parent
commit
f79a90161c
3 changed files with 15 additions and 1 deletions
  1. 1 0
      .dockerignore
  2. 8 0
      Dockerfile
  3. 6 1
      script/cibuild-linux

+ 1 - 0
.dockerignore

@@ -0,0 +1 @@
+*

+ 8 - 0
Dockerfile

@@ -0,0 +1,8 @@
+FROM libchromiumcontent-linux:latest
+
+# Install node.js
+RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
+RUN apt-get update && apt-get install -y --force-yes nodejs
+
+# Install wget used by crash reporter
+RUN apt-get install -y --force-yes  wget

+ 6 - 1
script/cibuild-linux

@@ -26,6 +26,11 @@ docker build \
   --tag libchromiumcontent-linux \
   ./vendor/libchromiumcontent
 
+docker build \
+  --force-rm \
+  --tag electron-linux \
+  .
+
 docker run \
   --rm \
   --env TARGET_ARCH="$TARGET_ARCH" \
@@ -41,4 +46,4 @@ docker run \
   --volume /dev/shm:/dev/shm \
   --workdir /workspace/electron \
   --privileged \
-  libchromiumcontent-linux script/cibuild
+  electron-linux script/cibuild