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 @@
.git
.idea
/bin
/dist
/docs
/npm-debug.log
node_modules
npm-debug.log
dist
.idea

View File

@ -1,21 +1,27 @@
FROM node:10.13.0
RUN apt-get update && apt-get install -y nasm
FROM node:10.13.0-alpine
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# Copy both package.json and package-lock.json
# where available (npm@5+)
COPY package*.json ./
COPY package.json package-lock.json ./
RUN npm install --production
# If you are building your code for production
# RUN npm install --only=production
# Install app dependencies
RUN set -x \
&& apk add --no-cache --virtual .build-dependencies \
autoconf \
automake \
g++ \
gcc \
libtool \
make \
nasm \
&& npm install --production \
&& apk del .build-dependencies
# Bundle app source
COPY . .
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",
"cookie-parser": "1.4.3",
"debug": "4.1.0",
"devtron": "1.4.0",
"ejs": "2.6.1",
"electron-debug": "2.0.0",
"electron-dl": "1.12.0",
@ -67,6 +66,7 @@
"xml2js": "0.4.19"
},
"devDependencies": {
"devtron": "1.4.0",
"electron": "4.0.0-beta.7",
"electron-compile": "6.4.3",
"electron-packager": "12.2.0",