Skip to content

Commit

Permalink
Merge pull request #602 from snyk/snyk-fix-8963b47709e0a78e901816f087…
Browse files Browse the repository at this point in the history
…20d175

[Snyk] Security upgrade node from 18.18.2-alpine3.18 to 18.19.1-alpine3.18
  • Loading branch information
jgresty authored Mar 25, 2024
2 parents 7c44956 + 3a9411e commit edc1bfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
FROM node:18.18.2-alpine3.18 AS build-env
FROM node:18.19.1-alpine3.18 AS build-env
WORKDIR /sweater-comb
COPY ["package.json", "package-lock.json", "./"]
RUN npm ci
COPY . .
RUN npm run build

FROM node:18.18.2-alpine3.18 AS clean-env
FROM node:18.19.1-alpine3.18 AS clean-env
COPY --from=build-env /sweater-comb/build/ /sweater-comb/
COPY --from=build-env /sweater-comb/babel.config.js /sweater-comb/
COPY --from=build-env /sweater-comb/package*.json /sweater-comb/
WORKDIR /sweater-comb
RUN npm install --production

FROM node:18.18.2-alpine3.18
FROM node:18.19.1-alpine3.18
ENV NODE_ENV production
COPY --from=clean-env /sweater-comb/ /sweater-comb/
WORKDIR /sweater-comb
Expand Down

0 comments on commit edc1bfc

Please sign in to comment.