mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-08 23:46:14 +02:00
build: Add Dockerfile and go mod tidy dependencies
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
FROM golang:alpine AS builder
|
||||
RUN apk --update add ca-certificates
|
||||
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"]
|
||||
Reference in New Issue
Block a user