joeshen commited on
Commit
9c0b8de
·
verified ·
1 Parent(s): 7def06b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -11
Dockerfile CHANGED
@@ -35,7 +35,8 @@ RUN git clone https://github.com/qingchencloud/clawpanel.git && \
35
  cd clawpanel && \
36
  npm install && \
37
  npm run build && \
38
- sed -i "s/server: { *$/server: {\n host: '0.0.0.0',\n allowedHosts: true,/" vite.config.js
 
39
  #RUN curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash
40
  #
41
  #RUN npm install -g playwright && playwright install chromium
@@ -243,16 +244,9 @@ echo "Starting ClawPanel/OpenClaw gateway on port ${OPENCLAW_PORT}..."
243
  #wait -n
244
 
245
  #openclaw gateway run --port ${OPENCLAW_PORT} &
246
- #cd clawpanel && npm run preview
247
- (
248
- cd clawpanel
249
- npm run preview -- --host 0.0.0.0 --port 1420
250
- ) &
251
-
252
- # -------------------------
253
- # 2️⃣ 启动 OpenClaw gateway 前台运行
254
- # 前台运行,成为 PID 1
255
- openclaw gateway run --port ${OPENCLAW_PORT}
256
  EOF
257
 
258
  RUN chmod +x /usr/local/bin/start-openclaw
 
35
  cd clawpanel && \
36
  npm install && \
37
  npm run build && \
38
+ #sed -i "s/server: { *$/server: {\n host: '0.0.0.0',\n allowedHosts: true,/" vite.config.js
39
+ sed -i "s/server: { *\n *port: 1420,/server: {\n host: '0.0.0.0',\n allowedHosts: true,\n port: 1420,/g" vite.config.js
40
  #RUN curl -fsSL https://raw.githubusercontent.com/qingchencloud/clawpanel/main/scripts/linux-deploy.sh | bash
41
  #
42
  #RUN npm install -g playwright && playwright install chromium
 
244
  #wait -n
245
 
246
  #openclaw gateway run --port ${OPENCLAW_PORT} &
247
+ cd clawpanel && npm run preview &
248
+ cd .. && openclaw gateway run --port ${OPENCLAW_PORT} &
249
+ wait -n
 
 
 
 
 
 
 
250
  EOF
251
 
252
  RUN chmod +x /usr/local/bin/start-openclaw