discord-pocketbot-go/Dockerfile

11 lines
300 B
Docker
Raw Normal View History

2020-05-21 02:39:41 +00:00
FROM golang:latest AS build
WORKDIR /go/src/discord-pocketbot
COPY . .
RUN go get -d -v ./...
RUN CGO_ENABLED=0 GOOS=linux go install -v ./...
FROM alpine:latest
run apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=build /go/bin/discord-pocketbot discord-pocketbot
CMD ./discord-pocketbot