ddgimagebot/Dockerfile

18 lines
334 B
Docker
Raw Permalink Normal View History

2022-10-07 12:43:14 +02:00
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"]