added: env and docker files
This commit is contained in:
parent
7c610d0477
commit
73314aebbf
2 changed files with 32 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM golang:1.24.1-alpine3.21 AS builder
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY go.* ./
|
||||||
|
|
||||||
|
RUN go mod tidy
|
||||||
|
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o app ./
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
|
RUN mkdir -p /home
|
||||||
|
|
||||||
|
COPY --from=builder /build/app /home/app
|
||||||
|
|
||||||
|
CMD ["./home/app"]
|
||||||
11
secret.env
Normal file
11
secret.env
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#APP
|
||||||
|
APP_LOG_LEVEL=info
|
||||||
|
|
||||||
|
#Telegram
|
||||||
|
TELEGRAM_TOKEN=
|
||||||
|
TELEGRAM_CHANNEL_ID=
|
||||||
|
|
||||||
|
#Discord
|
||||||
|
DISCORD_TOKEN=
|
||||||
|
GUILD_ID=
|
||||||
|
CHANNEL_ID=
|
||||||
Loading…
Add table
Add a link
Reference in a new issue