I convert this Dockerfile step:
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
to Dagger Go:
WithExec([]string{"curl", "https://packages.cloud.google.com/apt/doc/apt-key.gpg",
"|", "apt-key", "--keyring", "/usr/share/keyrings/cloud.google.gpg", "add", "-"})
But I faced the prob:
25: exec /__cacert_entrypoint.sh curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
25: [0.05s] curl: option --keyring: is unknown
25: [0.05s] curl: try 'curl --help' or 'curl --manual' for more information
25: exec /__cacert_entrypoint.sh curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - ERROR: process "/__cacert_entrypoint.sh curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -" did not complete successfully: exit code: 2
input:1: container.from.withWorkdir.withExec.withExec.withExec.withExec.withExec.withExec.withExec.withExec.withExec.withExposedPort.withEntrypoint.stdout process "/__cacert_entrypoint.sh curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -" did not complete successfully: exit code: 2
Stdout:
Stderr:
curl: option --keyring: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
Could you help me check this issue?