adjust args

pull/2531/head
vcptr 2019-10-31 11:44:57 +08:00 committed by Nicholas Wang
parent 89637f68e7
commit e3aa2bdf48
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100
2 changed files with 8 additions and 2 deletions

View File

@ -4,8 +4,8 @@
FROM golang:alpine AS builder FROM golang:alpine AS builder
RUN apk update && apk add --no-cache git bash wget RUN apk update && apk add --no-cache git bash wget
WORKDIR /go/src/v2ray.com/core WORKDIR /go/src/v2ray.com/core
RUN git clone --progress --depth=1 --branch dockerdev https://github.com/v2fly/v2ray-core.git . && \ RUN git clone --progress --depth=1 https://github.com/v2fly/v2ray-core.git . && \
bash -x ./release/user-package.sh nosource noconf abpathtgz=/tmp/v2ray.tgz bash ./release/user-package.sh nosource noconf abpathtgz=/tmp/v2ray.tgz
############################ ############################
# STEP 2 build a small image # STEP 2 build a small image
############################ ############################

View File

@ -138,6 +138,12 @@ case $arg in
abpathtgz=*) abpathtgz=*)
pkg=${arg##abpathtgz=} pkg=${arg##abpathtgz=}
;; ;;
codename=*)
CODENAME=${arg##codename=}
;;
buildname=*)
BUILDNAME=${arg##buildname=}
;;
esac esac
done done