-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from Protocore-UI/develop
Adds Dockerfile + update release to 0.0.8
- Loading branch information
Showing
3 changed files
with
37 additions
and
16 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,24 @@ | ||
FROM ubuntu:16.04 | ||
|
||
# make sure apt is up to date | ||
RUN apt-get update | ||
|
||
# install nodejs and npm | ||
RUN apt-get install -y nodejs npm | ||
|
||
# Create app directory | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
# install app dependencies | ||
COPY package.json /usr/src/app | ||
RUN npm install --production | ||
|
||
# Bundle app source | ||
COPY . /usr/src/app | ||
|
||
# Your app binds to port 8000 so you'll use the EXPOSE instruction | ||
# to have it mapped by the docker daemon | ||
EXPOSE 8000 | ||
|
||
CMD [ "npm", "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
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