FROM node:19-alpine AS stage0 WORKDIR /app COPY . . RUN yarn install && yarn build && rm -rf node_modules FROM node:19-alpine ENV STORAGE=/app/storage COPY --from=stage0 /app /app WORKDIR /app CMD node dist/index.js