Added Dockerfile to build a docker image for building the app

This commit is contained in:
Gregory Ballantine 2022-05-22 12:56:56 -04:00
parent 31c7aa644b
commit d1b968ca2a
2 changed files with 25 additions and 1 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# This Dockerfile was created merely to build the app through CI. It might work
# for local builds, but is not guaranteed.
# build the app with Node.js version 16
FROM node:16
# set working directory of the build
WORKDIR /usr/src/app
# install dependencies
RUN apt update && \
apt install -y ruby ruby-dev rpm \
gem install sass
# make sure node_modules and public exist so we can ensure it's own by the right user
RUN mkdir /usr/src/app/{node_modules,public}
RUN chown -R node /usr/src/app
USER node
VOLUME /usr/src/app/node_modules
VOLUME /usr/src/app/public

View File

@ -5,7 +5,8 @@
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"build": "electron-builder build --win --linux", "build-linux": "electron-builder build --linux",
"build-win": "electron-builder build --win",
"grunt": "grunt" "grunt": "grunt"
}, },
"repository": "https://github.com/electron/electron-quick-start", "repository": "https://github.com/electron/electron-quick-start",