Skip to content

Commit

Permalink
deps: Patch vulnerabilities (#573)
Browse files Browse the repository at this point in the history
- Updated `node` and `alpine` versions in Dockerfile
- Generated new `yarn.lock`

Closes #572
  • Loading branch information
ofredstie committed Jul 4, 2023
1 parent 5372672 commit b1981fd
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 179 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Install dependencies only when needed
FROM node:18.16.0-alpine3.17 AS deps
FROM node:18.16.1-alpine3.18 AS deps
WORKDIR /opt/app
COPY package.json yarn.lock ./
COPY scripts scripts
ENV NODE_ENV=production
RUN yarn install --frozen-lockfile

FROM node:18.16.0-alpine3.17 AS builder
FROM node:18.16.1-alpine3.18 AS builder
ENV NODE_ENV=production
WORKDIR /opt/app
COPY . .
Expand All @@ -16,7 +16,7 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN yarn build

# Production image, copy all the files and run next
FROM node:18.16.0-alpine3.17 AS runner
FROM node:18.16.1-alpine3.18 AS runner
RUN addgroup -S -g 1001 radix-non-root-group
RUN adduser -S -u 1001 -G radix-non-root-group radix-non-root-user
USER 1001
Expand Down
Loading

0 comments on commit b1981fd

Please sign in to comment.