Skip to content

Commit

Permalink
Update Dockerfile to use the latest Node.js version
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Apr 23, 2017
1 parent c442026 commit f61ccde
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[ignore]
.*/build
.*/config
.*/docs
.*/node_modules
.*/gulpfile.js
.*/public

[include]
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files

.idea
build
database.sqlite
node_modules
ncp-debug.log
npm-debug.log
.idea
yarn-error.log
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM node:6.9.5-alpine
FROM node:7.9.0-alpine

# Set a working directory
WORKDIR /usr/src/app

# Copy application files
COPY ./build /usr/src/app
WORKDIR /usr/src/app

# Install Yarn and Node.js dependencies
RUN npm install yarn --global --no-progress --silent --depth 0 && \
yarn install --production --no-progress
# Install Node.js dependencies
RUN yarn install --production --no-progress

CMD [ "node", "server.js" ]

0 comments on commit f61ccde

Please sign in to comment.