ci: fix corepack issue (#2237)
This commit is contained in:
@@ -10,6 +10,8 @@ RUN apk add --no-cache libc6-compat curl bash
|
|||||||
RUN apk update
|
RUN apk update
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Install working version of corepack (See https://github.com/nodejs/corepack/issues/612)
|
||||||
|
RUN npm install -g corepack@0.31.0 && corepack --version
|
||||||
RUN corepack enable pnpm && pnpm install --recursive --frozen-lockfile
|
RUN corepack enable pnpm && pnpm install --recursive --frozen-lockfile
|
||||||
|
|
||||||
# Copy static data as it is not part of the build
|
# Copy static data as it is not part of the build
|
||||||
@@ -17,6 +19,8 @@ COPY static-data ./static-data
|
|||||||
ARG SKIP_ENV_VALIDATION='true'
|
ARG SKIP_ENV_VALIDATION='true'
|
||||||
ARG CI='true'
|
ARG CI='true'
|
||||||
ARG DISABLE_REDIS_LOGS='true'
|
ARG DISABLE_REDIS_LOGS='true'
|
||||||
|
# Install working version of corepack (See https://github.com/nodejs/corepack/issues/612)
|
||||||
|
RUN npm install -g corepack@0.31.0 && corepack --version
|
||||||
RUN corepack enable pnpm && pnpm build
|
RUN corepack enable pnpm && pnpm build
|
||||||
|
|
||||||
FROM base AS runner
|
FROM base AS runner
|
||||||
@@ -66,4 +70,4 @@ ENV AUTH_PROVIDERS='credentials'
|
|||||||
ENV NODE_ENV='production'
|
ENV NODE_ENV='production'
|
||||||
|
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
CMD ["sh", "run.sh"]
|
CMD ["sh", "run.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user