Skip to content

Commit e0d1acd

Browse files
committedMay 4, 2020
Added Dockerfile and updated README
1 parent 971f21a commit e0d1acd

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
 

‎.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

‎Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM node:10
2+
3+
# Create app directory to hold the app code inside the image
4+
WORKDIR /usr/src/app
5+
6+
# Install app dependencies
7+
# A wildcard is used to ensure both package.json AND package-lock.json are copied
8+
# where available (npm@5+)
9+
COPY package*.json ./
10+
11+
RUN npm install
12+
# If you are building your code for production
13+
# RUN npm ci --only=production
14+
15+
# Bundle app source
16+
COPY . .
17+
18+
EXPOSE 8080
19+
CMD npm start

0 commit comments

Comments
 (0)
Please sign in to comment.