diff --git a/gpu-dockerfile b/gpu-dockerfile index c75e72c..dc331c5 100644 --- a/gpu-dockerfile +++ b/gpu-dockerfile @@ -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" \ No newline at end of file +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