We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693b23c commit d905139Copy full SHA for d905139
.dockerignore
@@ -0,0 +1,2 @@
1
+node_modules
2
+npm-debug.log
Dockerfile
@@ -1,19 +1,7 @@
-FROM node:8
-
3
-# Copy dependency info
4
-COPY package*.json /usr/src/app/
5
6
-# Change working directory
+FROM node:11.12.0
7
WORKDIR /usr/src/app/
8
9
-# Install dependencies
+COPY package*.json ./
10
RUN npm install
11
12
-# Copy source code
13
-COPY . /usr/src/app/
14
15
-# Expose API port to the outside
+COPY . .
16
EXPOSE 5000
17
18
-# Launch application
19
CMD ["npm","start"]
0 commit comments