Release test versions of telegram bot and AutomatizationCore
This commit is contained in:
13
telegram-bot/Dockerfile
Normal file
13
telegram-bot/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM golang:alpine as builder
|
||||
WORKDIR /app
|
||||
RUN apk update && apk upgrade && apk add --no-cache ca-certificates
|
||||
RUN update-ca-certificates
|
||||
ADD telegram-bot.go /app/
|
||||
ADD go.mod /app/
|
||||
ADD go.sum /app/
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -installsuffix cgo -o app .
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /app/app .
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
CMD ["./app"]
|
||||
Reference in New Issue
Block a user