Files
karma/Dockerfile
Łukasz Mierzwa 2a76843700 Use Docker multi-stage builds to reduce final docker image size
For second stage use https://github.com/GoogleCloudPlatform/distroless which provides a minimal image with CA certificates.
Binary is compiled with CGO_ENABLED=0 to prevent dynamical linking to any libraries.
2017-08-22 19:31:56 -07:00

12 lines
374 B
Docker

FROM golang:1.8.3-alpine3.6 as unsee-builder
COPY . /go/src/github.com/cloudflare/unsee
ARG VERSION
RUN apk add --update make git nodejs nodejs-npm
RUN CGO_ENABLED=0 make -C /go/src/github.com/cloudflare/unsee VERSION="${VERSION:-dev}" unsee
FROM gcr.io/distroless/base
COPY --from=unsee-builder /go/src/github.com/cloudflare/unsee/unsee /unsee
EXPOSE 8080
CMD ["/unsee"]