ankush13r commited on
Commit
df1355c
1 Parent(s): 82e1fdb

update docker

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -1
  2. entrypoint.sh.template +1 -1
Dockerfile CHANGED
@@ -5,6 +5,9 @@ ARG APP_NAME
5
 
6
 
7
  FROM node:20 as chatui-builder
 
 
 
8
  ARG MODEL_NAME
9
  ARG APP_COLOR
10
  ARG APP_NAME
@@ -85,7 +88,7 @@ RUN npm install -g pm2
85
  RUN npm install -g dotenv-cli
86
 
87
  # Install Playwright and its dependencies
88
- RUN npx playwright install --with-deps
89
 
90
  RUN mv /app/chat-ui/node_modules /app/node_modules
91
  RUN mv /app/chat-ui/package.json /app/package.json
 
5
 
6
 
7
  FROM node:20 as chatui-builder
8
+
9
+ ENV PLAYWRIGHT_SKIP_BROWSER_GC=1
10
+
11
  ARG MODEL_NAME
12
  ARG APP_COLOR
13
  ARG APP_NAME
 
88
  RUN npm install -g dotenv-cli
89
 
90
  # Install Playwright and its dependencies
91
+ RUN npx playwright install --with-deps chromium
92
 
93
  RUN mv /app/chat-ui/node_modules /app/node_modules
94
  RUN mv /app/chat-ui/package.json /app/package.json
entrypoint.sh.template CHANGED
@@ -15,7 +15,7 @@
15
  # Start the chat-ui process
16
  export PUBLIC_VERSION="2.0"
17
  dotenv -e /app/.env.local -e /app/.env -c -- pm2 start /app/build/index.js -i 8 --no-daemon &
18
- rm -f /app/.env.local -e /app/.env
19
 
20
  # Wait for any process to exit
21
  wait -n
 
15
  # Start the chat-ui process
16
  export PUBLIC_VERSION="2.0"
17
  dotenv -e /app/.env.local -e /app/.env -c -- pm2 start /app/build/index.js -i 8 --no-daemon &
18
+ # rm -f /app/.env.local /app/.env
19
 
20
  # Wait for any process to exit
21
  wait -n