warm up module in dockerfile
This commit is contained in:
1 parent
df1d4fadec
commit
966af4d4c5
2 files changed
+6
No files matched your search
@@ -14,4 +14,7 @@ RUN pip3 install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
# 可选步骤,用于预热模块
|
||||
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
|
||||
|
||||
CMD ["python3", "-u", "main.py"]
|
||||
Reference in new issue
Block a user