mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-04 01:06:01 +02:00
use make in docker build to properly get buildinfo
This commit is contained in:
+3
-6
@@ -1,10 +1,7 @@
|
||||
FROM golang:alpine AS builder
|
||||
RUN apk --update add ca-certificates
|
||||
RUN apk --update add ca-certificates git make bash
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
RUN go mod tidy
|
||||
ENV DISCORD_BOT_TOKEN=""
|
||||
ENV GIT_COMMIT=""
|
||||
ENV BUILD_DATE=""
|
||||
RUN go build -ldflags="-s -w -X main.CommitHash=$GIT_COMMIT -X main.BuildDate=$BUILD_DATE" -o bin/swiftspiracybot cmd/bot/main.go
|
||||
ENTRYPOINT ["bin/swiftspiracybot"]
|
||||
RUN make bot
|
||||
ENTRYPOINT ["bin/bot"]
|
||||
|
||||
Reference in New Issue
Block a user