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: