discord-buttsbot-go/Dockerfile

11 lines
244 B
Docker

FROM golang:latest AS build
WORKDIR /go/src/buttsbot
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
FROM alpine:latest
run apk add --no-cache bash
WORKDIR /app
COPY --from=build /go/bin/buttsbot discord-buttsbot
CMD ./discord-buttsbot