mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
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.
11 lines
339 B
Docker
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"]
|