Create initial Dockerfile

pull/20/head
pocketjawa 2020-05-20 22:39:41 -04:00
orang tua d3db70e72d
melakukan 4b011c983d
1 mengubah file dengan 11 tambahan dan 0 penghapusan

11
Dockerfile Normal file
Melihat File

@ -0,0 +1,11 @@
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