Skip to content

Commit

Permalink
fix: apps/platform/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Apr 12, 2024
1 parent ba2527d commit a80e6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/platform/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12 as build
FROM node:20.5 as build
# assert that a compatible yarn version is installed or fail
RUN case `yarn --version` in 1.22*) true;; *) false;; esac
COPY package.json yarn.lock /tmp/platform-app/
Expand All @@ -8,7 +8,7 @@ COPY . /tmp/platform-app/
ARG REACT_APP_REVISION=""
RUN : "${REACT_APP_REVISION:?Missing --build-arg REACT_APP_REVISION=\$(git rev-parse --short HEAD)}"
RUN yarn build
FROM node:12
FROM node:20.5
RUN npm install -g serve
COPY --from=build /tmp/platform-app/build/ /var/www/platform-app/
WORKDIR /var/www/platform-app/
Expand Down

0 comments on commit a80e6e7

Please sign in to comment.