2020-11-14 17:18:50 +03:00
|
|
|
FROM golang:alpine as build
|
|
|
|
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
|
|
|
|
WORKDIR /go/src/transmission-telegram
|
|
|
|
COPY . .
|
|
|
|
|
2022-03-21 03:04:28 +03:00
|
|
|
RUN go mod init transmission-telegram
|
|
|
|
RUN go mod tidy
|
2020-11-14 17:18:50 +03:00
|
|
|
RUN go get -d -v ./...
|
|
|
|
RUN go install -v ./...
|
|
|
|
|
|
|
|
RUN go build -o main .
|
|
|
|
|
2019-01-08 02:22:25 +03:00
|
|
|
FROM alpine:latest as certs
|
|
|
|
RUN apk --update add ca-certificates
|
|
|
|
|
|
|
|
FROM bash:latest
|
|
|
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
2024-01-28 11:18:17 +03:00
|
|
|
COPY --from=build /go/src/transmission-telegram/main /transmission-telegram
|
2019-01-08 02:22:25 +03:00
|
|
|
RUN chmod 777 transmission-telegram
|
|
|
|
|
2024-01-28 11:49:29 +03:00
|
|
|
ENTRYPOINT ["/transmission-telegram"]
|