Skip to content

Commit

Permalink
fix: apps/frontend/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 95a86f2 commit f726612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine as dependencies
FROM node:20.15.1-alpine3.20 as dependencies
WORKDIR /app

# Install Python for node-gyp
Expand All @@ -8,7 +8,7 @@ COPY package*.json ./
RUN npm ci

# Build Stage
FROM node:lts-alpine as build
FROM node:20.15.1-alpine3.20 as build
WORKDIR /app

# Arguments passed from docker-compose.yml / workflow
Expand All @@ -28,7 +28,7 @@ RUN npx nx build frontend --prod --skip-nx-cache \
&& npm prune --production

# Production Stage
FROM node:lts-alpine as production
FROM node:20.15.1-alpine3.20 as production
WORKDIR /app

COPY --from=build /app/dist/apps/frontend ./frontend
Expand Down

0 comments on commit f726612

Please sign in to comment.