FROM node:21-alpine3.18 WORKDIR /tmp COPY . /tmp RUN yarn install --production RUN yarn global add typescript RUN tsc RUN cp /tmp/build/* /app WORKDIR /app CMD ["node","index.js"]