mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2025-02-06 00:54:44 +00:00
Using different corepack install method to fix corepack bug. (#454)
https://github.com/nodejs/corepack/issues/612
This commit is contained in:
parent
e6e046eed3
commit
e01929927a
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ FROM node:20-alpine AS api_v0.19
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY lemmy-js-client-v0.19 lemmy-js-client
|
COPY lemmy-js-client-v0.19 lemmy-js-client
|
||||||
WORKDIR /app/lemmy-js-client
|
WORKDIR /app/lemmy-js-client
|
||||||
RUN corepack enable pnpm
|
RUN npm install -g corepack@latest && corepack enable pnpm
|
||||||
RUN pnpm i
|
RUN pnpm i
|
||||||
RUN pnpm run docs
|
RUN pnpm run docs
|
||||||
# OpenAPI isn't currently working for the v0.19 docs, so no pnpm tsoa
|
# OpenAPI isn't currently working for the v0.19 docs, so no pnpm tsoa
|
||||||
|
@ -29,7 +29,7 @@ FROM node:20-alpine AS api_main
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY lemmy-js-client-main lemmy-js-client
|
COPY lemmy-js-client-main lemmy-js-client
|
||||||
WORKDIR /app/lemmy-js-client
|
WORKDIR /app/lemmy-js-client
|
||||||
RUN corepack enable pnpm
|
RUN npm install -g corepack@latest && corepack enable pnpm
|
||||||
RUN pnpm i
|
RUN pnpm i
|
||||||
RUN pnpm run docs
|
RUN pnpm run docs
|
||||||
RUN pnpm tsoa
|
RUN pnpm tsoa
|
||||||
|
@ -38,7 +38,7 @@ RUN pnpm tsoa
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
RUN apk update && apk add python3 build-base gcc wget git curl --no-cache
|
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 curl -sf https://gobinaries.com/tj/node-prune | sh
|
||||||
RUN corepack enable pnpm
|
RUN npm install -g corepack@latest && corepack enable pnpm
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue