From 2b0a9be1bb6ff52c85aeaf4d7bf3f21ceb437b57 Mon Sep 17 00:00:00 2001 From: Graham Goh Date: Thu, 1 Oct 2020 14:42:17 +1000 Subject: [PATCH] Update Dockerfile to not use piccolo.link (#30) * Update Dockerfile to not use piccolo.link Piccolo.link seems to go down from time to time. According to https://github.com/sbt/sbt/issues/5860#issuecomment-698212882 It is more stable to replace the link with `https://github.com/sbt/sbt/releases/download/v/sbt-.tgz` * Add -f flag to curl To exit early. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e8feaa8..c2fcf38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN npm config set unsafe-perm true RUN npm install -g snyk RUN pip install boto3 RUN apk add --no-cache --virtual=build-dependencies curl wget tar && \ - curl -sL "https://piccolo.link/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local && \ + curl -fsL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local && \ ln -s /usr/local/sbt/bin/sbt /usr/local/bin/sbt && \ chmod 0755 /usr/local/bin/sbt && \ mkdir -p /tmp/sbt-preload && \