Skip to content

Commit

Permalink
chore: Revise of PR #2157, move global steps earlier, execute as root
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-avila committed Mar 21, 2024
1 parent 3f77fe1 commit 25a0487
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
FROM node:18-alpine AS node

RUN apk add g++ make py3-pip
RUN npm install -g node-gyp
RUN apk --no-cache add curl

RUN mkdir -p /app && chown node:node /app
WORKDIR /app
Expand All @@ -14,10 +16,7 @@ COPY --chown=node:node . .
# values.
RUN touch .env
RUN npm config set fetch-retry-maxtimeout 300000
RUN npm install -g node-gyp

RUN apk --no-cache add curl && \
npm install --no-audit
RUN npm install --no-audit

# React client build
ENV NODE_OPTIONS="--max-old-space-size=2048"
Expand Down

0 comments on commit 25a0487

Please sign in to comment.