mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-06 17:00:20 +00:00
🎨 build version
This commit is contained in:
1 parent
652ecc248b
commit
fc1e15bf31
3 files changed
+9
-4
No files matched your search
@@ -1,11 +1,10 @@
|
||||
FROM golang:alpine AS binarybuilder
|
||||
RUN apk --no-cache --no-progress add \
|
||||
gcc \
|
||||
musl-dev
|
||||
gcc git musl-dev
|
||||
WORKDIR /dashboard
|
||||
COPY . .
|
||||
RUN cd cmd/dashboard \
|
||||
&& go build -o app -ldflags="-s -w"
|
||||
&& go build -o app -ldflags="-s -w -X github.com/p14yground/nezha/service/dao.Version=`git rev-parse HEAD`"
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache --no-progress add \
|
||||
|
||||
Reference in new issue
Block a user