mirror of
https://github.com/makayabou/asg-server.git
synced 2026-05-02 17:43:36 +02:00
[docker] fix version info in build
This commit is contained in:
parent
54a8b491de
commit
a1f606734f
@ -26,7 +26,7 @@ RUN go generate ./...
|
||||
|
||||
# Builds the application as a staticly linked one, to allow it to run on alpine
|
||||
# RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o app .
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags="-w -s -X github.com/capcom6/${APP}/internal/version.AppVersion=${APP_VERSION} -X github.com/capcom6/${APP}/internal/version.AppRelease=${APP_RELEASE_ID}" -o app ./cmd/${APP}/main.go
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags="-w -s -X github.com/android-sms-gateway/server/internal/version.AppVersion=${APP_VERSION} -X github.com/android-sms-gateway/server/internal/version.AppRelease=${APP_RELEASE_ID}" -o app ./cmd/${APP}/main.go
|
||||
|
||||
# Moving the binary to the 'final Image' to make it smaller
|
||||
FROM alpine:3 as prod
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user