4PEb6b commited on
Commit
6c6bec8
·
verified ·
1 Parent(s): 5fa4116

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -12,6 +12,9 @@ ENTRYPOINT [ "tini", "--" ]
12
  # Create app directory
13
  WORKDIR ${APP_HOME}
14
 
 
 
 
15
  # Env
16
  # 是否远程获取下面的参数 是个链接,返回一个json;执行完后关闭这个链接即可保密
17
  # 返回内容:
@@ -48,6 +51,10 @@ ADD launch.sh launch.sh
48
  RUN curl -JLO https://github.com/bincooo/SillyTavern-Docker/releases/download/v1.0.0/git-batch
49
  RUN chmod +x launch.sh && chmod +x git-batch && ./git-batch -h
50
 
 
 
 
 
51
  # Copy default chats, characters and user avatars to <folder>.default folder
52
  RUN \
53
  rm -f "config.yaml" || true && \
 
12
  # Create app directory
13
  WORKDIR ${APP_HOME}
14
 
15
+ # Set NODE_ENV to production
16
+ ENV NODE_ENV=production
17
+
18
  # Env
19
  # 是否远程获取下面的参数 是个链接,返回一个json;执行完后关闭这个链接即可保密
20
  # 返回内容:
 
51
  RUN curl -JLO https://github.com/bincooo/SillyTavern-Docker/releases/download/v1.0.0/git-batch
52
  RUN chmod +x launch.sh && chmod +x git-batch && ./git-batch -h
53
 
54
+ RUN \
55
+ echo "*** Install npm packages ***" && \
56
+ npm i --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
57
+
58
  # Copy default chats, characters and user avatars to <folder>.default folder
59
  RUN \
60
  rm -f "config.yaml" || true && \