From 00d1520e447997689c729d2a531c7cd9bcfb6924 Mon Sep 17 00:00:00 2001 From: kovacs Date: Mon, 7 Nov 2022 13:42:25 +0800 Subject: [PATCH] chore(ci): fix docker build failed fix docker build failed Signed-off-by: kovacs --- Dockerfile | 4 ++-- build.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 496f634..822ac3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.19-alpine AS builder +FROM golang:1-alpine AS builder LABEL maintainer="mritd " @@ -14,7 +14,7 @@ COPY . /go/src/github.com/hynetwork/hysteria WORKDIR /go/src/github.com/hynetwork/hysteria RUN set -ex \ - && apk add git build-base \ + && apk add git build-base bash \ && ./build.sh \ && mv ./build/hysteria-* /go/bin/hysteria diff --git a/build.sh b/build.sh index 64556fa..6c3985f 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash + +set -e # Hysteria build script for Linux # Environment variable options: