添加启动脚本和 HF_HOME 环境变量
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
__pycache__
|
||||
/venv
|
||||
/huggingface
|
||||
|
||||
@@ -6,8 +6,10 @@ WORKDIR /app
|
||||
|
||||
COPY ./requirements_version.txt .
|
||||
|
||||
RUN pip install -r requirements_version.txt --no-cache-dir
|
||||
RUN pip install -r requirements_version.txt --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN python acge_embedding.py
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user