mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
Merge pull request #168 from cloudflare/fix-docker-hub
Docker Hub doesn't support build stages yet
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -1,10 +1,16 @@
|
||||
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
|
||||
|
||||
COPY . /go/src/github.com/cloudflare/unsee
|
||||
|
||||
ARG VERSION
|
||||
|
||||
RUN apk add --update --no-cache --virtual .build-dependencies \
|
||||
make git nodejs && \
|
||||
make -C /go/src/github.com/cloudflare/unsee VERSION="${VERSION:-dev}" && \
|
||||
mv /go/src/github.com/cloudflare/unsee/unsee /bin/unsee && \
|
||||
rm -fr /go/src && \
|
||||
apk del .build-dependencies
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["unsee"]
|
||||
|
||||
Reference in New Issue
Block a user