Skip to content

Commit a1f6067

Browse files
committed
[docker] fix version info in build
1 parent 54a8b49 commit a1f6067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/package/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN go generate ./...
2626

2727
# Builds the application as a staticly linked one, to allow it to run on alpine
2828
# RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -o app .
29-
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
29+
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
3030

3131
# Moving the binary to the 'final Image' to make it smaller
3232
FROM alpine:3 as prod

0 commit comments

Comments
 (0)