Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -10,10 +10,8 @@ RUN useradd -m appuser
|
|
10 |
WORKDIR /app
|
11 |
RUN chown appuser:appuser /app
|
12 |
|
13 |
-
#
|
14 |
-
COPY
|
15 |
-
COPY entrypoint.sh /app/entrypoint.sh
|
16 |
-
COPY scheduler.py /app/scheduler.py
|
17 |
|
18 |
# 设置执行权限
|
19 |
RUN chmod +x /app/entrypoint.sh
|
@@ -22,7 +20,7 @@ RUN chmod +x /app/entrypoint.sh
|
|
22 |
USER appuser
|
23 |
|
24 |
# 安装Python依赖
|
25 |
-
RUN pip install --user
|
26 |
|
27 |
# 设置环境变量(这些将在HuggingFace后台设置)
|
28 |
ENV GITHUB_TOKEN=""
|
|
|
10 |
WORKDIR /app
|
11 |
RUN chown appuser:appuser /app
|
12 |
|
13 |
+
# 复制所有必要的文件和文件夹
|
14 |
+
COPY . /app
|
|
|
|
|
15 |
|
16 |
# 设置执行权限
|
17 |
RUN chmod +x /app/entrypoint.sh
|
|
|
20 |
USER appuser
|
21 |
|
22 |
# 安装Python依赖
|
23 |
+
RUN pip install --user -r requirements.txt
|
24 |
|
25 |
# 设置环境变量(这些将在HuggingFace后台设置)
|
26 |
ENV GITHUB_TOKEN=""
|