diff --git a/ts/Dockerfile b/ts/Dockerfile index dbe912c..354a6a6 100644 --- a/ts/Dockerfile +++ b/ts/Dockerfile @@ -1,13 +1,17 @@ +FROM node:23 AS builder + +WORKDIR /build +COPY package.json yarn.lock .yarnrc.yml . +RUN corepack yarn install + FROM node:23 WORKDIR /app RUN npm i -g tsx -COPY package.json yarn.lock .yarnrc.yml . - -RUN corepack yarn install - -COPY . . +COPY --from=builder /build/node_modules node_modules +COPY tsconfig.json package.json cli . +COPY src src ENTRYPOINT ["/app/cli"]