Rename binary
This commit is contained in:
parent
e032fe6a66
commit
5b5c1ce040
2
.gitignore
vendored
2
.gitignore
vendored
@ -25,6 +25,6 @@ _testmain.go
|
||||
*.prof
|
||||
|
||||
# Output
|
||||
dsched
|
||||
dockron
|
||||
# deps
|
||||
vendor/
|
||||
|
@ -7,10 +7,10 @@ COPY ./Gopkg.* /go/src/app/
|
||||
RUN dep ensure --vendor-only
|
||||
|
||||
COPY ./main.go /go/src/app/
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o dsched .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o dockron .
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /go/src/app/dsched .
|
||||
COPY --from=builder /go/src/app/dockron .
|
||||
|
||||
CMD [ "./dsched" ]
|
||||
CMD [ "./dockron" ]
|
||||
|
10
Makefile
10
Makefile
@ -1,4 +1,4 @@
|
||||
DOCKER_TAG ?= dsched-dev
|
||||
DOCKER_TAG ?= dockron-dev
|
||||
|
||||
.PHONY: default
|
||||
default: build
|
||||
@ -13,17 +13,17 @@ run: vendor
|
||||
go run *.go
|
||||
|
||||
# Output target
|
||||
dsched: vendor
|
||||
go build -o dsched
|
||||
dockron: vendor
|
||||
go build -o dockron
|
||||
|
||||
# Alias for building
|
||||
.PHONY: build
|
||||
build: dsched
|
||||
build: dockron
|
||||
|
||||
# Cleans all build artifacts
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm dsched
|
||||
rm dockron
|
||||
|
||||
# Cleans vendor directory
|
||||
.PHONY: clean-vendor
|
||||
|
Loading…
Reference in New Issue
Block a user