From 08d006992895196ce220572a1a402acc65d8a390 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Tue, 17 Sep 2024 17:48:06 +0900 Subject: [PATCH] Update Dockerfile.template.erb Co-authored-by: Daijiro Fukuda Signed-off-by: Kentaro Hayashi --- Dockerfile.template.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.template.erb b/Dockerfile.template.erb index ef9a96a..1f23160 100644 --- a/Dockerfile.template.erb +++ b/Dockerfile.template.erb @@ -69,7 +69,7 @@ RUN choco install -y ruby --version 3.2.4.1 --params "'/InstallDir:C:\ruby32'" \ RUN refreshenv \ && ridk install 3 \ && type "c:\ProgramData\gemrc" \ -&& c:\ruby32\bin\ruby -e "require 'yaml'; File.open('c:/ProgramData/gemrc') do |file| yaml = YAML.safe_load(file); yaml['install'] = '--no-document'; yaml['update'] = '--no-document'; File.open('c:/ProgramData/gemrc', 'w+') do |output| output.puts(YAML.dump(yaml)); end; end" \ +&& c:\ruby32\bin\ruby -r yaml -e "path = 'c:/ProgramData/gemrc'; yaml = YAML.safe_load(File.read(path)); yaml['install'] = '--no-document'; yaml['update'] = '--no-document'; File.write(path, YAML.dump(yaml))" \ && type "c:\ProgramData\gemrc" \ && gem install oj -v 3.16.5 \ && gem install json -v 2.7.2 \