FROM golang:alpine AS builder WORKDIR /go/src/git.zio.sh/astra/ddgimagebot COPY . . RUN apk update && \ apk add --no-cache git bash && \ go get -d -v ./... && \ go install FROM alpine:latest COPY --from=builder /go/bin/ddgimagebot /usr/local/bin/ddgimagebot RUN apk add --no-cache bash ENV BOT_TOKEN "" CMD ["ddgimagebot"]