RUN echo "export const VERSION = '$(git describe --tag)';" > "src/shared/version.ts"\r
\r
RUN yarn --production --prefer-offline\r
-RUN yarn build:prod\r
+RUN NODE_OPTIONS="--max-old-space-size=8192" yarn build:prod\r
\r
# Prune the image\r
RUN node-prune /usr/src/app/node_modules\r
COPY --from=builder /usr/src/app/dist /app/dist\r
COPY --from=builder /usr/src/app/node_modules /app/node_modules\r
\r
+RUN chown -R node:node /app\r
+\r
+USER node\r
EXPOSE 1234\r
WORKDIR /app\r
CMD node dist/js/server.js\r