Files
polaris/Dockerfile
Bobby Brennan 54a4f92695 Pack static assets into packr box for portability
copy config.yaml to docker image

enable external usage of dashboard package

gofmt

fix comment

use packr for assets

add gobuffalo/packr dependency

add dependencies

fix pointer issues

add output-file option
2019-04-18 18:25:16 +00:00

21 lines
691 B
Docker

FROM golang:1.11.4 AS build-env
WORKDIR /go/src/github.com/reactiveops/fairwinds/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o fairwinds *.go
FROM alpine:3.8
WORKDIR /usr/local/bin
RUN apk --no-cache add ca-certificates
USER nobody
COPY --from=build-env /go/src/github.com/reactiveops/fairwinds/fairwinds .
WORKDIR /opt/app
COPY --from=build-env /go/src/github.com/reactiveops/fairwinds/pkg/dashboard/templates/dashboard.gohtml ./pkg/dashboard/templates/dashboard.gohtml
COPY --from=build-env /go/src/github.com/reactiveops/fairwinds/public ./public
COPY --from=build-env /go/src/github.com/reactiveops/fairwinds/config.yaml ./config.yaml
ENTRYPOINT ["fairwinds"]