Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -18,8 +18,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 18 |
RUN git clone https://github.com/kfcx/HFSpaceDeploy.git
|
| 19 |
RUN chmod +x HFSpaceDeploy/start.sh
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# 安装 HFSpaceDeploy 目录下的 Python 依赖
|
| 22 |
-
RUN pip install --no-cache-dir -r
|
| 23 |
|
| 24 |
# 复制应用代码
|
| 25 |
COPY . .
|
|
@@ -35,4 +38,4 @@ USER appuser
|
|
| 35 |
EXPOSE 7860
|
| 36 |
|
| 37 |
# 使用启动脚本启动 Redis 和 Python 应用
|
| 38 |
-
CMD ["./
|
|
|
|
| 18 |
RUN git clone https://github.com/kfcx/HFSpaceDeploy.git
|
| 19 |
RUN chmod +x HFSpaceDeploy/start.sh
|
| 20 |
|
| 21 |
+
# 设置工作目录为HFSpaceDeploy
|
| 22 |
+
WORKDIR /app/HFSpaceDeploy
|
| 23 |
+
|
| 24 |
# 安装 HFSpaceDeploy 目录下的 Python 依赖
|
| 25 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
# 复制应用代码
|
| 28 |
COPY . .
|
|
|
|
| 38 |
EXPOSE 7860
|
| 39 |
|
| 40 |
# 使用启动脚本启动 Redis 和 Python 应用
|
| 41 |
+
CMD ["./start.sh"]
|