фиксы запуска
This commit is contained in:
17
telegram_bot/Dockerfile
Normal file
17
telegram_bot/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.25-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Modules layer
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
# Build layer
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /tg_bot .
|
||||
|
||||
FROM alpine:latest AS run
|
||||
|
||||
COPY --from=build /tg_bot /tg_bot
|
||||
|
||||
CMD ["/tg_bot"]
|
||||
Reference in New Issue
Block a user