Skip to content

Commit 0abd68c

Browse files
committed
add Dockerfile
1 parent b147624 commit 0abd68c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# use the latest node LTS release
2+
FROM node:carbon
3+
WORKDIR /usr/src/app
4+
5+
# copy package.json and package-lock.json and install packages. we do this
6+
# separate from the application code to better use docker's caching
7+
# `npm install` will be cached on future builds if only the app code changed
8+
COPY package*.json ./
9+
RUN npm install
10+
11+
# copy the app
12+
COPY . .
13+
14+
# expose port 3000 and start the app
15+
EXPOSE 3000
16+
CMD [ "npm", "start" ]
17+

0 commit comments

Comments
 (0)