mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-04 01:06:01 +02:00
build: Add Dockerfile and go mod tidy dependencies
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
.env
|
||||
bin
|
||||
vendor
|
||||
.idea
|
||||
|
||||
+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"]
|
||||
@@ -3,9 +3,12 @@ module github.com/khinshankhan/swiftspiracy
|
||||
go 1.23.4
|
||||
|
||||
require (
|
||||
github.com/bwmarrin/discordgo v0.28.1 // indirect
|
||||
github.com/bwmarrin/discordgo v0.28.1
|
||||
github.com/joho/godotenv v1.5.1
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/gorilla/websocket v1.4.2 // indirect
|
||||
github.com/joho/godotenv v1.5.1 // indirect
|
||||
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
|
||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 // indirect
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user