Skip to content

Commit

Permalink
Adding back dockerfiles, hello script
Browse files Browse the repository at this point in the history
  • Loading branch information
karllhughes committed Jan 4, 2018
1 parent 6af5646 commit 303ea66
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
.idea
**/node_modules
.DS_Store
.data
25 changes: 25 additions & 0 deletions Dockerfile
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"]

0 comments on commit 303ea66

Please sign in to comment.