Spaces:
Sleeping
Sleeping
Commit
·
79f4ebb
1
Parent(s):
97b5c54
update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -26,13 +26,13 @@ USER user
|
|
| 26 |
# 拷贝应用文件并安装依赖
|
| 27 |
COPY --chown=user . $HOME/app
|
| 28 |
|
| 29 |
-
WORKDIR $HOME/app
|
| 30 |
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 32 |
&& pip install --no-cache-dir streamlit \
|
| 33 |
-
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 34 |
|
| 35 |
-
WORKDIR $HOME/app/hf_app
|
| 36 |
|
| 37 |
# 运行 Streamlit 应用
|
| 38 |
CMD ["streamlit", "run", "app.py", "--server.port", "8200"]
|
|
|
|
| 26 |
# 拷贝应用文件并安装依赖
|
| 27 |
COPY --chown=user . $HOME/app
|
| 28 |
|
| 29 |
+
WORKDIR $HOME/app/hf_app
|
| 30 |
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 32 |
&& pip install --no-cache-dir streamlit \
|
| 33 |
+
&& pip install --no-cache-dir -r ../requirements.txt
|
| 34 |
+
|
| 35 |
|
|
|
|
| 36 |
|
| 37 |
# 运行 Streamlit 应用
|
| 38 |
CMD ["streamlit", "run", "app.py", "--server.port", "8200"]
|