diff --git a/Dockerfile b/Dockerfile index aac9caa..70d5a0e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,15 @@ FROM golang:alpine as build ENV GOOS=linux \ - GOARCH=amd64 + GOARCH=amd64 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 ./...