Initial codex telegram bot source
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM golang:1.23-alpine AS build
|
||||
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum* ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 go build -o /out/codex-telegram-bot ./cmd/bot
|
||||
|
||||
FROM alpine:3.20
|
||||
|
||||
RUN adduser -D -h /home/bot bot
|
||||
COPY --from=build /out/codex-telegram-bot /usr/local/bin/codex-telegram-bot
|
||||
|
||||
USER bot
|
||||
ENTRYPOINT ["/usr/local/bin/codex-telegram-bot"]
|
||||
Reference in New Issue
Block a user