add files

This commit is contained in:
astravexton 2022-10-07 10:43:14 +00:00
commit de8a92c967
4 changed files with 209 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
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"]