Skip to content

Commit

Permalink
Update docker file to node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
cmroche authored and askmike committed Dec 5, 2017
1 parent 94d57a7 commit 6e86e45
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
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
Expand All @@ -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
Expand Down

0 comments on commit 6e86e45

Please sign in to comment.