discord-buttsbot-go/Dockerfile

11 lines
285 B
Docker
Raw Normal View History

FROM golang:latest AS build
2019-07-29 02:58:19 +00:00
WORKDIR /go/src/buttsbot
COPY . .
RUN go get -d -v ./...
2019-07-30 03:17:45 +00:00
RUN CGO_ENABLED=0 GOOS=linux go install -v ./...
2019-07-29 02:58:19 +00:00
FROM alpine:latest
2019-07-30 03:17:45 +00:00
run apk add --no-cache bash ca-certificates
WORKDIR /app
COPY --from=build /go/bin/buttsbot discord-buttsbot
CMD ./discord-buttsbot