forked from kriasoft/react-starter-kit
-
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.
Update Dockerfile to use the latest Node.js version
- Loading branch information
Showing
3 changed files
with
10 additions
and
9 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,7 +1,7 @@ | ||
[ignore] | ||
.*/build | ||
.*/config | ||
.*/docs | ||
.*/node_modules | ||
.*/gulpfile.js | ||
.*/public | ||
|
||
[include] |
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,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 |
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,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" ] |