mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
docker build args.
This commit is contained in:
parent
371cfa496c
commit
5134ff5c7e
14
Dockerfile
14
Dockerfile
@ -17,10 +17,22 @@ RUN set -eux; \
|
||||
apt-get clean -y; \
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||||
|
||||
ARG GIT_COMMIT=dev
|
||||
ARG GIT_BRANCH=dev
|
||||
|
||||
#
|
||||
# build server
|
||||
COPY . .
|
||||
RUN go get -v -t -d . && go build -tags browser -o bin/neko -i cmd/neko/main.go
|
||||
RUN go get -v -t -d . && go build \
|
||||
-tags browser \
|
||||
-o bin/neko \
|
||||
-ldflags " \
|
||||
-s -w \
|
||||
-X 'demodesk/neko.buildDate=`date -u +'%Y-%m-%dT%H:%M:%SZ'`' \
|
||||
-X 'demodesk/neko.gitCommit=${GIT_COMMIT}' \
|
||||
-X 'demodesk/neko.gitBranch=${GIT_BRANCH}' \
|
||||
" \
|
||||
-i cmd/neko/main.go;
|
||||
|
||||
#
|
||||
# Stage 2: Runtime.
|
||||
|
Loading…
Reference in New Issue
Block a user