Skip to content

Commit

Permalink
🐋 fix(Dockerfile): add back additional deps., handle permissions, use…
Browse files Browse the repository at this point in the history
… `--no-audit` flag on install (#2157)
  • Loading branch information
danny-avila authored Mar 21, 2024
1 parent a673f62 commit 09de9a2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# Base node image
FROM node:18-alpine AS node

COPY . /app
RUN mkdir -p /app && chown node:node /app
WORKDIR /app

USER node

COPY --chown=node:node . .

# Allow mounting of these files, which have no default
# values.
RUN touch .env
RUN npm config set fetch-retry-maxtimeout 300000
RUN apk add g++ make py3-pip
RUN npm install -g node-gyp


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

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

0 comments on commit 09de9a2

Please sign in to comment.