Update Dockerfile
Browse files- 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 '{"
|
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端口
|