Downgrading node to 20 to fix webpack regression. (#445)

- Context: https://github.com/webpack/webpack/issues/18963
This commit is contained in:
Dessalines 2024-11-19 09:44:12 -05:00 committed by GitHub
parent 830fa6f1f7
commit 84ba0edda2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ COPY lemmy-docs ./lemmy-docs
RUN ./mdbook build lemmy-docs -d ../docs
# Build the typedoc API docs
FROM node:alpine AS api
FROM node:20-alpine AS api
WORKDIR /app
COPY lemmy-js-client lemmy-js-client
WORKDIR /app/lemmy-js-client
@ -24,7 +24,7 @@ RUN pnpm i
RUN pnpm run docs
# Build the isomorphic app
FROM node:alpine AS builder
FROM node:20-alpine AS builder
RUN apk update && apk add python3 build-base gcc wget git curl --no-cache
RUN curl -sf https://gobinaries.com/tj/node-prune | sh
RUN corepack enable pnpm
@ -63,7 +63,7 @@ RUN rm -rf ./node_modules/import-sort-parser-typescript
RUN rm -rf ./node_modules/typescript
RUN rm -rf ./node_modules/npm
FROM node:alpine AS runner
FROM node:20-alpine AS runner
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/node_modules /app/node_modules