Increase the memory limit for real

This commit is contained in:
Nate Carlson
2020-11-26 21:43:00 -06:00
parent da90ad5c7e
commit a26606faf2

View File

@@ -5,6 +5,7 @@ FROM node:8.11
ENV HOME=/home/app
ENV NODE_OPTIONS="--max_old_space_size=8000"
RUN mkdir -p /home/app
COPY ./package.json /tmp
@@ -16,6 +17,6 @@ ENV PATH /usr/app/node_modules/.bin:$PATH
WORKDIR $HOME
COPY . $HOME/
RUN node --max_old_space_size=8000 $(which npm) run build
RUN npm run build
CMD ["npm", "run", "start"]
CMD ["npm", "run", "start:dev"]