We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b147624 commit 0abd68cCopy full SHA for 0abd68c
Dockerfile
@@ -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