This commit is contained in:
parent
27260f688b
commit
aae9f59c2c
13
Dockerfile
13
Dockerfile
@ -1,16 +1,3 @@
|
||||
FROM golang:1.15
|
||||
|
||||
WORKDIR /go/src/app
|
||||
copy . .
|
||||
|
||||
RUN go get -d -v ./...
|
||||
RUN go install -v ./...
|
||||
|
||||
CMD ["sco"]
|
||||
|
||||
|
||||
|
||||
|
||||
FROM golang:1.15 as builder
|
||||
RUN mkdir /build
|
||||
ADD . /build/
|
||||
|
2
Makefile
2
Makefile
@ -40,4 +40,4 @@ go-get:
|
||||
cd cmd/$(FN) && go get -v
|
||||
|
||||
./$(FN): */*.go cmd/*/*.go go-get
|
||||
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) . && mv $(FN) ../..
|
||||
cd cmd/$(FN) && go build -o ../../$(FN) $(GOFLAGS) .
|
||||
|
@ -8,10 +8,11 @@ var Buildarch string
|
||||
|
||||
func main() {
|
||||
mybot := bot.New(func(b *bot.Bot) {
|
||||
b.BotName = "LSV Serious Callers Only"
|
||||
b.BotName = "lsvsco"
|
||||
b.Version = Version
|
||||
b.Buildarch = Buildarch
|
||||
b.APIURL = os.Getenv("SCO_API_URL")
|
||||
b.TeamName = os.Getenv("SCO_TEAM_NAME")
|
||||
b.WebsocketURL = os.Getenv("SCO_WEBSOCKET_URL")
|
||||
b.DebuggingChannelName = os.Getenv("SCO_DEBUG_CHANNEL")
|
||||
b.AccountEmail = os.Getenv("SCO_ACCOUNT_EMAIL")
|
||||
|
Loading…
Reference in New Issue
Block a user