13 lines
345 B
Docker
13 lines
345 B
Docker
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
|
|
RUN mkdir /app/userdata
|
|
VOLUME /app/userdata
|
|
CMD ./discord-pocketbot |