FROM node:18-alpine AS build WORKDIR /app COPY package*.json /app RUN npm install COPY . /app ENV NODE_OPTIONS="--max-old-space-size=4096" RUN npm run build FROM node:18-alpine AS prod WORKDIR /app COPY --from=build /app /app EXPOSE 1337 CMD ["npm", "run", "start"]