Skip to content

Commit d905139

Browse files
committed
Finally got docker working.
1 parent 693b23c commit d905139

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.dockerignore

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

Dockerfile

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
FROM node:8
2-
3-
# Copy dependency info
4-
COPY package*.json /usr/src/app/
5-
6-
# Change working directory
1+
FROM node:11.12.0
72
WORKDIR /usr/src/app/
8-
9-
# Install dependencies
3+
COPY package*.json ./
104
RUN npm install
11-
12-
# Copy source code
13-
COPY . /usr/src/app/
14-
15-
# Expose API port to the outside
5+
COPY . .
166
EXPOSE 5000
17-
18-
# Launch application
197
CMD ["npm","start"]

0 commit comments

Comments
 (0)