wynn/ts/Dockerfile
a 24cf9db757
Some checks failed
commit-tag / commit-tag-image (push) Failing after 54s
corepack lol
2025-03-01 15:17:19 -06:00

21 lines
358 B
Docker

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 --from=builder /build/node_modules node_modules
COPY tsconfig.json package.json cli .
COPY src src
# make sure it passes compilation before compiling
RUN corepack yarn tsc
ENTRYPOINT ["/app/cli"]