2019-07-30 01:36:27 +00:00
|
|
|
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
|
|
|
|
2019-07-30 01:36:27 +00:00
|
|
|
FROM alpine:latest
|
2019-07-30 03:17:45 +00:00
|
|
|
run apk add --no-cache bash ca-certificates
|
2019-07-30 01:36:27 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /go/bin/buttsbot discord-buttsbot
|
|
|
|
CMD ./discord-buttsbot
|