Merge pull request #247 from gabe565/master

Smaller Docker image
This commit is contained in:
zadam 2018-11-30 13:38:47 +01:00 committed by GitHub
commit 295cfb2d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2094 additions and 2081 deletions

View File

@ -1,4 +1,7 @@
node_modules .git
npm-debug.log
dist
.idea .idea
/bin
/dist
/docs
/npm-debug.log
node_modules

View File

@ -1,21 +1,27 @@
FROM node:10.13.0 FROM node:10.13.0-alpine
RUN apt-get update && apt-get install -y nasm
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Install app dependencies # Copy both package.json and package-lock.json
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+) # where available (npm@5+)
COPY package*.json ./ COPY package.json package-lock.json ./
RUN npm install --production # Install app dependencies
# If you are building your code for production RUN set -x \
# RUN npm install --only=production && apk add --no-cache --virtual .build-dependencies \
autoconf \
automake \
g++ \
gcc \
libtool \
make \
nasm \
&& npm install --production \
&& apk del .build-dependencies
# Bundle app source # Bundle app source
COPY . . COPY . .
EXPOSE 8080 EXPOSE 8080
CMD [ "node", "src/www" ] CMD [ "node", "./src/www" ]

4138
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,6 @@
"commonmark": "0.28.1", "commonmark": "0.28.1",
"cookie-parser": "1.4.3", "cookie-parser": "1.4.3",
"debug": "4.1.0", "debug": "4.1.0",
"devtron": "1.4.0",
"ejs": "2.6.1", "ejs": "2.6.1",
"electron-debug": "2.0.0", "electron-debug": "2.0.0",
"electron-dl": "1.12.0", "electron-dl": "1.12.0",
@ -67,6 +66,7 @@
"xml2js": "0.4.19" "xml2js": "0.4.19"
}, },
"devDependencies": { "devDependencies": {
"devtron": "1.4.0",
"electron": "4.0.0-beta.7", "electron": "4.0.0-beta.7",
"electron-compile": "6.4.3", "electron-compile": "6.4.3",
"electron-packager": "12.2.0", "electron-packager": "12.2.0",