Skip to content

Commit

Permalink
fix: Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Oct 1, 2022
1 parent 74fd2df commit 1aaa64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16.17.0-alpine3.16 AS builder
FROM node:16.17.1-alpine3.16 AS builder
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npm run release

FROM node:16.17.0-alpine3.16
FROM node:16.17.1-alpine3.16
USER node
WORKDIR /usr/app
COPY --chown=node:node --from=builder /usr/app/dist /usr/app/src/schema.sql ./
Expand Down

0 comments on commit 1aaa64a

Please sign in to comment.