Spaces:
Sleeping
Sleeping
Commit
·
cadcd22
1
Parent(s):
b046893
update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -22,11 +22,12 @@ ENV HOME=/home/user \
|
|
| 22 |
PATH="/home/user/.local/bin:$PATH"
|
| 23 |
|
| 24 |
USER user
|
| 25 |
-
WORKDIR $HOME/app
|
| 26 |
|
| 27 |
# 拷贝应用文件并安装依赖
|
| 28 |
COPY --chown=user . $HOME/app
|
| 29 |
|
|
|
|
|
|
|
| 30 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 31 |
&& pip install --no-cache-dir streamlit \
|
| 32 |
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 22 |
PATH="/home/user/.local/bin:$PATH"
|
| 23 |
|
| 24 |
USER user
|
|
|
|
| 25 |
|
| 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
|