Skip to content

Commit 27f901b

Browse files
authored
Merge pull request dockersamples#140 from BretFisher/update-result-deps
Update result node version and npm dependencies
2 parents 8a64ab8 + 683dd0c commit 27f901b

File tree

7 files changed

+1185
-7006
lines changed

7 files changed

+1185
-7006
lines changed

result/Dockerfile

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
FROM node:8.9-alpine
1+
FROM node:10-slim
22

3-
RUN mkdir -p /app
43
WORKDIR /app
54

65
RUN npm install -g nodemon
7-
RUN npm config set registry https://registry.npmjs.org
8-
COPY package.json /app/package.json
9-
RUN npm install \
10-
&& npm ls \
6+
7+
COPY package*.json ./
8+
9+
RUN npm ci \
1110
&& npm cache clean --force \
1211
&& mv /app/node_modules /node_modules
13-
COPY . /app
12+
13+
COPY . .
1414

1515
ENV PORT 80
16+
1617
EXPOSE 80
1718

1819
CMD ["node", "server.js"]

0 commit comments

Comments
 (0)