Skip to content

Commit

Permalink
Add .curlrc to configure curl
Browse files Browse the repository at this point in the history
Force ipv4
On arm64 add temporal fix for SSL_ERROR_SYSCALL error
see: curl/curl#14154
  • Loading branch information
rubensa committed Oct 16, 2024
1 parent 3b9622b commit 126cc3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ if [ "$TARGETARCH" = "amd64" ]; then
fi
EOT

RUN <<EOT
echo "# Configuring curl..."
# Force ipv4 with curl
# for root
echo 'ipv4' >> ~/.curlrc
# for the user
echo 'ipv4' >> /home/${USER_NAME}/.curlrc
if [ "$TARGETARCH" = "arm64" ]; then
# Temporal fix for SSL_ERROR_SYSCALL error
# see: https://github.com/curl/curl/issues/14154
# for root
echo 'insecure' >> ~/.curlrc
# for the user
echo 'insecure' >> /home/${USER_NAME}/.curlrc
fi
EOT

# Docker CLI Version (https://download.docker.com/linux/static/stable/)
ARG DOCKER_VERSION=27.3.1
# Add docker
Expand Down

0 comments on commit 126cc3b

Please sign in to comment.