wynn/ts/Dockerfile
a 6e1595a7c5
Some checks failed
commit-tag / commit-tag-image (push) Failing after 57s
noot
2025-03-01 15:10:31 -06:00

21 lines
349 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 yarn tsc
ENTRYPOINT ["/app/cli"]