diff --git a/Dockerfile b/Dockerfile index 3a25584..3a9de4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY aws/tailcall.tf /aws/tailcall.tf COPY fly/Dockerfile /fly/Dockerfile RUN apk upgrade --no-cache && apk update --no-cache -RUN apk add --no-cache curl jq go +RUN apk add --no-cache curl jq ENTRYPOINT /bin/sh /entrypoint.sh \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index e793be3..50df492 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,12 +20,10 @@ cp $TAILCALL_CONFIG /fly/config.graphql setup_terraform() { TERRAFORM_VERSION=$(get_latest_version hashicorp terraform) - wget -O /tmp/terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip - unzip /tmp/terraform.zip -d /tmp && rm /tmp/terraform.zip - ls /tmp - mv /tmp/*/terraform /usr/local/bin/terraform - ls /aws - chmod +x /aws/terraform + echo $TERRAFORM_VERSION + wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip + unzip terraform.zip && rm terraform.zip + mv ./*/terraform /usr/local/bin/terraform } setup_flyctl() {