Files
karma/Dockerfile
Łukasz Mierzwa 971d48f3d7 Use make targets in the dockerfile
By dropping vendor & bindata.go from git unsee is no longer go installable, and realistically it won't be, because the build pipeline is big and involves multiple tools.
Let's just use make targets we use for development when building docker image.
2017-08-09 11:24:08 -07:00

11 lines
339 B
Docker

FROM golang:1.8.3-alpine as unsee-builder
COPY . /go/src/github.com/cloudflare/unsee
ARG VERSION
RUN apk add --update make git nodejs
RUN make -C /go/src/github.com/cloudflare/unsee VERSION="${VERSION:-dev}"
FROM golang:1.8.3-alpine
COPY --from=unsee-builder /go/src/github.com/cloudflare/unsee/unsee /bin/unsee
EXPOSE 8080
CMD ["unsee"]