-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding back dockerfiles, hello script
- Loading branch information
1 parent
6af5646
commit 303ea66
Showing
2 changed files
with
30 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,5 @@ | ||
.git | ||
.idea | ||
**/node_modules | ||
.DS_Store | ||
.data |
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,25 @@ | ||
FROM node:9 | ||
|
||
# Create base directory | ||
RUN mkdir /src | ||
WORKDIR /src | ||
|
||
# Install packages | ||
COPY ./package.json /src/package.json | ||
COPY ./package-lock.json /src/package-lock.json | ||
COPY ./nodemon.json /src/nodemon.json | ||
RUN npm install --silent | ||
|
||
# Add application code | ||
COPY ./app /src/app | ||
COPY ./bin /src/bin | ||
COPY ./public /src/public | ||
|
||
# Set environmental defaults | ||
ENV NODE_ENV development | ||
|
||
# Allows port 3000 to be publicly available | ||
EXPOSE 3000 | ||
|
||
# The run command | ||
CMD ["node", "node_modules/.bin/nodemon", "-L", "bin/www"] |