yangtb24 commited on
Commit
c1888fa
·
verified ·
1 Parent(s): 7cad8a6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -9,12 +9,10 @@ RUN pip install --no-cache-dir -r requirements.txt
9
  # 复制应用代码
10
  COPY . .
11
 
12
- # 创建必要的数据目录和文件并设置正确权限
13
  RUN mkdir -p /code/data && \
14
- touch /code/data/auth_tokens.json && \
15
- touch /code/data/api_keys.json && \
16
  echo '{"tokens":{}}' > /code/data/auth_tokens.json && \
17
- echo '{"keys":[]}' > /code/data/api_keys.json && \
18
  chmod 777 -R /code/data
19
 
20
  # 配置HuggingFace Space端口
 
9
  # 复制应用代码
10
  COPY . .
11
 
12
+ # 创建必要的数据目录和文件并设置正确的JSON结构
13
  RUN mkdir -p /code/data && \
 
 
14
  echo '{"tokens":{}}' > /code/data/auth_tokens.json && \
15
+ echo '{"api_keys":[]}' > /code/data/api_keys.json && \
16
  chmod 777 -R /code/data
17
 
18
  # 配置HuggingFace Space端口