-
Notifications
You must be signed in to change notification settings - Fork 1
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
Craig Freeman
committed
Aug 23, 2018
1 parent
d3bca19
commit 40d9f50
Showing
2 changed files
with
36 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:9 | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
ADD package.json /usr/src/app/ | ||
ADD . /usr/src/app | ||
RUN cd /usr/src/app/ | ||
|
||
# install yarn and set ENV var | ||
RUN yarn install | ||
|
||
# Bundle app source | ||
ENV NODE_ENV=production | ||
# Note our config is at build time, so we are building with env params, suboptimal | ||
CMD [ "yarn", "start" ] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM node:9 | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
ADD package.json /usr/src/app/ | ||
ADD . /usr/src/app | ||
RUN cd /usr/src/app/ | ||
|
||
# install yarn and set ENV var | ||
RUN yarn install | ||
|
||
# Bundle app source | ||
ENV NODE_ENV=production | ||
# Note our config is at build time, so we are building with env params, suboptimal | ||
CMD [ "yarn", "start" ] |