You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

12 lines
390 B

FROM golang:alpine AS build-env
WORKDIR ${GOPATH}/src/kolaente.dev/konrad/discord-kaenguru
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/discord-kaenguru
# The actual image
FROM scratch
COPY --from=build-env /go/bin/discord-kaenguru /discord-kaenguru
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ENTRYPOINT ["/discord-kaenguru"]