transmission-telegram/Dockerfile

24 lines
555 B
Docker
Raw Normal View History

2024-08-18 20:47:28 +03:00
FROM golang:alpine AS build
RUN apk add --no-cache git
WORKDIR /go/src/transmission-telegram
COPY . .
RUN go mod init transmission-telegram
RUN go mod tidy
RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -o main .
2024-08-18 20:47:28 +03:00
FROM alpine:latest AS certs
RUN apk --no-cache 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
RUN chmod 777 transmission-telegram
2024-01-28 11:49:29 +03:00
ENTRYPOINT ["/transmission-telegram"]