fix: fix testing torrents container

This commit is contained in:
2025-04-01 03:45:56 +08:00
parent a0fc4c04d9
commit 1fca69fa66
10 changed files with 159 additions and 1721 deletions

View File

@@ -1,14 +1,17 @@
FROM node:23-slim AS nodebt
RUN npm install -g pnpm
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
FROM nodebt AS deps
RUN mkdir -p /app/workspace
WORKDIR /app
COPY package.json /app/
RUN npm install
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --no-frozen-lockfile
FROM deps AS app
COPY main.ts /app/
CMD [ "npm", "start" ]
CMD [ "npm", "start" ]