Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

reverting multistage because minikube uses old docker version #31

Merged
merged 1 commit into from
Oct 19, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
FROM varikin/golang-glide-alpine AS build
WORKDIR /go/src/github.com/k8guard/k8guard-discover
COPY ./ ./
RUN apk -U add make
RUN make deps build

FROM alpine
RUN apk -U add ca-certificates
COPY --from=build /go/src/github.com/k8guard/k8guard-discover/k8guard-discover /
ADD k8guard-discover /
EXPOSE 3000
ENTRYPOINT ["/k8guard-discover"]


# Commmenting out the multistage build
# Unfortunately I have to revert multistage dockerfile with a lot of saddness
# because minikube uses a very old version of docker in the virtual machine they provide
# and that breaks buidling k8guard for minikube locally,
# altenrative solution would have been providing two dockerfiles one for docker-compose one for minikube
# for the sake of unity, I compromise for not using multistage dockerfile for now.
# with a lot of saddness. :(
# https://github.com/k8guard/k8guard-start-from-here/issues/50


# FROM varikin/golang-glide-alpine AS build
# WORKDIR /go/src/github.com/k8guard/k8guard-discover
# COPY ./ ./
# RUN apk -U add make
# RUN make deps build
#
# FROM alpine
# RUN apk -U add ca-certificates
# COPY --from=build /go/src/github.com/k8guard/k8guard-discover/k8guard-discover /
# EXPOSE 3000
# ENTRYPOINT ["/k8guard-discover"]