Skip to content

Commit 056b101

Browse files
committed
Normal build strategy
1 parent b5bbe3c commit 056b101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG APP_NAME=pcompose
2424

2525
RUN go generate ./...
2626
RUN go test ./...
27-
RUN go install -ldflags="-s -w -X github.com/${REPOSITORY}/cmd.Version=${VERSION} -X github.com/${REPOSITORY}/cmd.Commit=${COMMIT} -X github.com/${REPOSITORY}/cmd.Date=${DATE}"
27+
RUN go build -o /go/bin/${APP_NAME} -ldflags="-s -w -X github.com/${REPOSITORY}/cmd.Version=${VERSION} -X github.com/${REPOSITORY}/cmd.Commit=${COMMIT} -X github.com/${REPOSITORY}/cmd.Date=${DATE}"
2828

2929
FROM alpine
3030
LABEL maintainer="Antonio Mika <[email protected]>"

0 commit comments

Comments
 (0)