Skip to content

Commit e0e5a9c

Browse files
committed
use docker
1 parent 060f16a commit e0e5a9c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-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

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:boron
2+
3+
# Create app directory
4+
RUN mkdir -p /usr/src/app
5+
WORKDIR /usr/src/app
6+
7+
# Install app dependencies
8+
COPY package.json /usr/src/app/
9+
RUN npm install
10+
11+
# Bundle app source
12+
COPY . /usr/src/app
13+
14+
# Compile :)
15+
RUN npm run compile
16+
17+
EXPOSE 8000
18+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)