initial version
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
FROM golang:1.19.5-buster as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go mod init tgbod/m
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go get
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o tgbot -ldflags="-w -s" .
|
||||
|
||||
FROM golang:1.19.5-buster
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/tgbot /usr/bin/
|
||||
|
||||
ENTRYPOINT ["tgbot"]
|
||||
|
||||
USER 1001
|
||||
Reference in New Issue
Block a user