devin15 commited on
Commit
bf2d5ac
·
verified ·
1 Parent(s): 5c4a2de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -214,7 +214,8 @@ RUN echo '#!/bin/sh' > /start.sh && \
214
  echo 'echo "Starting nginx on port 7860..."' >> /start.sh && \
215
  # echo 'exec gosu root nginx -g "daemon off;"' >> /start.sh && \ # hf不允许提权
216
  echo 'exec java -jar /app/app.jar > /app/app-run.log 2>&1 & ' >> /start.sh && \
217
- echo 'exec nginx -g "daemon off;"' >> /start.sh && \
 
218
  chmod +x /start.sh
219
 
220
  # 设置工作目录
 
214
  echo 'echo "Starting nginx on port 7860..."' >> /start.sh && \
215
  # echo 'exec gosu root nginx -g "daemon off;"' >> /start.sh && \ # hf不允许提权
216
  echo 'exec java -jar /app/app.jar > /app/app-run.log 2>&1 & ' >> /start.sh && \
217
+ echo 'exec nginx -g "daemon on;" &' >> /start.sh && \
218
+ echo 'exec tail -1000f /app/app-run.log' >> /start.sh && \
219
  chmod +x /start.sh
220
 
221
  # 设置工作目录