mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-04 01:06:01 +02:00
11 lines
332 B
Docker
11 lines
332 B
Docker
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"]
|