From b6e57ca8a57c486eb7832fc6c37e0c850d089658 Mon Sep 17 00:00:00 2001 From: hyh <2667004988@qq.com> Date: Tue, 18 Jun 2024 09:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gpu-dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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