Skip to content

Commit

Permalink
Updated settings
Browse files Browse the repository at this point in the history
  • Loading branch information
alecghica committed Sep 22, 2021
1 parent d1313bf commit aee77cd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM node:12-stretch-slim

COPY . /opt/frontend/

WORKDIR /opt/frontend/

# Update apt packages
RUN runDeps="openssl ca-certificates patch git" \
Expand All @@ -11,19 +11,17 @@ RUN runDeps="openssl ca-certificates patch git" \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& chown -R node /opt/frontend/ \
&& cp jsconfig.json.tpl jsconfig.json \
&& mkdir -p /opt/frontend/src/addons \
&& rm -rf /opt/frontend/src/addons/* \
&& cd /opt/frontend \
&& npm install -g mrs-developer

WORKDIR /opt/frontend/

USER node

ARG MAX_OLD_SPACE_SIZE=8192
ENV NODE_OPTIONS=--max_old_space_size=$MAX_OLD_SPACE_SIZE

RUN cd /opt/frontend \
&& yarn develop \
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn \
&& RAZZLE_API_PATH=VOLTO_API_PATH RAZZLE_INTERNAL_API_PATH=VOLTO_INTERNAL_API_PATH yarn build \
&& rm -rf /home/node/.cache
Expand Down

0 comments on commit aee77cd

Please sign in to comment.