forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:6.3 | ||
FROM node:8 | ||
|
||
ENV HOST localhost | ||
ENV PORT 3000 | ||
|
@@ -9,14 +9,13 @@ WORKDIR /usr/src/app | |
|
||
# Install GYP dependencies globally, will be used to code build other dependencies | ||
RUN npm install -g --production node-gyp && \ | ||
cd $(npm root -g)/npm && npm install --production fs-extra && sed -i -e s/graceful-fs/fs-extra/ -e s/fs.rename/fs.move/ ./lib/utils/rename.js && \ | ||
npm cache clean | ||
npm cache clean --force | ||
|
||
# Install app dependencies | ||
COPY package.json /usr/src/app | ||
RUN npm install --production && \ | ||
npm install --production [email protected] [email protected] [email protected] pg && \ | ||
npm cache clean | ||
npm cache clean --force | ||
|
||
# Bundle app source | ||
COPY . /usr/src/app | ||
|