FROM node:18-bullseye-slim | |
WORKDIR /app | |
RUN chown -R 1000:1000 /app | |
USER 1000 | |
RUN cp . . | |
RUN npm install | |
RUN npm run build | |
EXPOSE 7860 | |
ENV NODE_ENV=production | |
ENV NODE_OPTIONS="--max-old-space-size=12882" | |
CMD [ "npm", "start" ] | |
FROM node:18-bullseye-slim | |
WORKDIR /app | |
RUN chown -R 1000:1000 /app | |
USER 1000 | |
RUN cp . . | |
RUN npm install | |
RUN npm run build | |
EXPOSE 7860 | |
ENV NODE_ENV=production | |
ENV NODE_OPTIONS="--max-old-space-size=12882" | |
CMD [ "npm", "start" ] | |