Skip to content

Commit 066ffec

Browse files
authored
Merge pull request #187 from akkeris/fix-dependency-and-vulns
Fix dependencies and vulnerabilities
2 parents c48d071 + 348961f commit 066ffec

File tree

4 files changed

+19744
-3232
lines changed

4 files changed

+19744
-3232
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
FROM node:10-alpine
1+
FROM node:14-alpine
22

33
RUN mkdir -p /usr/src/app
44
WORKDIR /usr/src/app
55

66
ARG NODE_ENV
77
ENV NODE_ENV $NODE_ENV
88
COPY package*.json /usr/src/app/
9-
RUN npm install -g [email protected] && npm install && npm cache clean --force
9+
RUN npm install -g [email protected]
10+
RUN npm install
11+
RUN npm cache clean --force
1012
COPY . /usr/src/app
1113
RUN npm run webpack
14+
RUN rm -rf node_modules
15+
RUN npm install --only=prod
1216
CMD [ "npm", "start" ]
1317

1418
EXPOSE 3000

0 commit comments

Comments
 (0)