transmission-telegram/Dockerfile
Struchkov Mark 16cb1dfbe7
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing
fixed Dockerfile
2024-08-18 20:47:28 +03:00

24 lines
555 B
Docker

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 .
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
COPY --from=build /go/src/transmission-telegram/main /transmission-telegram
RUN chmod 777 transmission-telegram
ENTRYPOINT ["/transmission-telegram"]