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