diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4c5cc3d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:alpine AS builder + +WORKDIR /app + +COPY go.* ./ +RUN go mod download + +COPY . . + +RUN CGO_ENABLED=0 GOOS=linux go build -o saveany-bot . + +FROM alpine:latest + +WORKDIR /app + +COPY --from=builder /app/saveany-bot . + +CMD ["./saveany-bot"] \ No newline at end of file