This commit is contained in:
hyh 2024-06-18 09:43:00 +08:00
parent 6956befa74
commit b6e57ca8a5

View File

@ -23,4 +23,8 @@ RUN apt-get update && apt-get install -y libicu-dev wget vim && \
WORKDIR /q
# 在容器启动时运行命令
CMD sh -c "echo '{\"Settings\": {\"baseUrl\": \"$url\",\"amountOfThreads\": $num,\"payoutId\": \"$token\",\"accessToken\": null,\"overwrites\": {\"CUDA\": \"12\"},\"allowHwInfoCollect\": true,\"alias\": \"$name\"}}' > appsettings.json && ./trainer"
CMD sh -c "echo '{\"Settings\": {\"baseUrl\": \"$url\",\"amountOfThreads\": $num,\"payoutId\": \"$token\",\"accessToken\": null,\"overwrites\": {\"CUDA\": \"12\"},\"allowHwInfoCollect\": true,\"alias\": \"$name\"}}' > appsettings.json && ./trainer"
# 构建编译和推送
# docker build -f gpu-dockerfile -t itgpt/qubic-gpu:latest .
# docker push itgpt/qubic-gpu:latest