mao123qw commited on
Commit
3848729
·
verified ·
1 Parent(s): 39941cd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -27,7 +27,10 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
27
  && update-ca-certificates \
28
  && useradd -r -u 1000 -m -d $APP_HOME -s /bin/bash $APP_USER \
29
  && chown -R $APP_USER:$APP_USER $APP_HOME
30
- RUN pip install --no-cache-dir huggingface_hub && python3 -m venv /app/venv
 
 
 
31
 
32
 
33
  # 配置Java环境路径
 
27
  && update-ca-certificates \
28
  && useradd -r -u 1000 -m -d $APP_HOME -s /bin/bash $APP_USER \
29
  && chown -R $APP_USER:$APP_USER $APP_HOME
30
+ RUN pip install --no-cache-dir huggingface_hub
31
+ ENV VIRTUAL_ENV=/app/venv
32
+ RUN python3 -m venv $VIRTUAL_ENV
33
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
34
 
35
 
36
  # 配置Java环境路径