This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): Allow to be run in docker by providing a docker file
- Loading branch information
Ben Einaudi
committed
Feb 24, 2017
1 parent
1ad9c40
commit ad39ded
Showing
3 changed files
with
33 additions
and
6 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,5 @@ | ||
node_modules | ||
.git | ||
.idea | ||
*.iml | ||
*.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM node:0.12 | ||
|
||
# Create app directory | ||
RUN mkdir -p /opt/app-root/src | ||
WORKDIR /opt/app-root/src | ||
|
||
|
||
# Install app dependencies | ||
COPY package.json /opt/app-root/src | ||
RUN npm install | ||
|
||
# Bundle app source | ||
COPY . /opt/app-root/src | ||
|
||
EXPOSE 8080 | ||
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