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 Jul 25, 2024
1 parent 6b61e8f commit 2f20847
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,12 +1,12 @@
# syntax=docker/dockerfile:1
FROM node:lts-alpine AS builder
FROM node:20.15.1-alpine3.20 AS builder
WORKDIR /usr/app
COPY package*.json ./
RUN npm ci --ignore-scripts
COPY . .
RUN npm run build && npm run pack && npm run copy-other-required-files

FROM node:lts-alpine
FROM node:20.15.1-alpine3.20
WORKDIR /usr/app
COPY --from=builder /usr/app/dist ./

Expand Down

0 comments on commit 2f20847

Please sign in to comment.