Skip to content

Commit

Permalink
chore: bump node to 12.16.1 & cleanup dockerfile
Browse files Browse the repository at this point in the history
* add git for dockerignore and fix CVE critical issues on nodejs

* remove mkdir as WORKDIR does it

* Node 12.16

* chore: bump node to 12.16.1

Co-authored-by: Markus Maga <[email protected]>
  • Loading branch information
inductor and Flydiverny committed Feb 28, 2020
1 parent ce86b5e commit fb28455
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ coverage
Dockerfile
node_modules
release.sh
.git
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
FROM node:12.13.0-alpine
FROM node:12.16.1-alpine

ENV NODE_ENV production
ENV NPM_CONFIG_LOGLEVEL info

RUN npm install [email protected] -g

# Setup source directory
RUN mkdir /app
WORKDIR /app
COPY package.json package-lock.json /app/
COPY package*.json ./
RUN npm ci --production

# Copy app to source directory
COPY . /app
COPY . .

USER node
CMD ["npm", "start"]

0 comments on commit fb28455

Please sign in to comment.