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 Aug 10, 2022
1 parent e572353 commit f3a673b
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.15.1-alpine3.16 AS builder
FROM node:lts-alpine AS builder
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run release

FROM node:16.15.1-alpine3.16
FROM node:lts-alpine
USER node
WORKDIR /usr/app
COPY --chown=node:node --from=builder /usr/app/dist /usr/app/build/health-check.js /usr/app/src/schema.sql ./
Expand Down

0 comments on commit f3a673b

Please sign in to comment.