diff --git a/Dockerfile b/Dockerfile index 3fd649d..542b47f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,15 @@ FROM golang:alpine AS builder RUN apk --update add ca-certificates git make bash + WORKDIR /app COPY . ./ + RUN go mod tidy RUN make bot -ENTRYPOINT ["bin/bot"] + +FROM alpine +RUN apk --no-cache add ca-certificates + +COPY --from=builder /app/bin/bot /bot + +ENTRYPOINT ["/bot"]