mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
chore: Revise of PR #2157, move global steps earlier, execute as root
This commit is contained in:
parent
3f77fe18b7
commit
25a0487ce5
1 changed files with 3 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
||||||
FROM node:18-alpine AS node
|
FROM node:18-alpine AS node
|
||||||
|
|
||||||
RUN apk add g++ make py3-pip
|
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
|
RUN mkdir -p /app && chown node:node /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -14,10 +16,7 @@ COPY --chown=node:node . .
|
||||||
# values.
|
# values.
|
||||||
RUN touch .env
|
RUN touch .env
|
||||||
RUN npm config set fetch-retry-maxtimeout 300000
|
RUN npm config set fetch-retry-maxtimeout 300000
|
||||||
RUN npm install -g node-gyp
|
RUN npm install --no-audit
|
||||||
|
|
||||||
RUN apk --no-cache add curl && \
|
|
||||||
npm install --no-audit
|
|
||||||
|
|
||||||
# React client build
|
# React client build
|
||||||
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue