mango-v4/ts/client/scripts/Dockerfile.scripts

22 lines
308 B
Docker

FROM node:18 as builder
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY ts ts
RUN ls
# scripts are run with tsx, no upfront build needed
# RUN yarn build
FROM node:18-slim as run
LABEL fly_launch_runtime="nodejs"
COPY --from=builder /app /app
WORKDIR /app
ENV NODE_ENV production