We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cfa38a commit 609c7edCopy full SHA for 609c7ed
Dockerfile
@@ -1,12 +1,12 @@
1
FROM node:20-slim AS base
2
ENV PNPM_HOME="/pnpm"
3
ENV PATH="$PNPM_HOME:$PATH"
4
-RUN corepack enable
+RUN corepack disable && npm install -g pnpm@latest
5
6
FROM base AS build
7
COPY . /usr/src/app
8
WORKDIR /usr/src/app
9
-RUN pnpm fetch --prod
+RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
10
RUN pnpm run build:local
11
RUN pnpm deploy --filter @chatgpt-telegram-workers/local --prod /prod/local
12
0 commit comments