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

Commit

Permalink
reverting multistage, because minikube uses old docker (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh authored and brianberzins committed Oct 19, 2017
1 parent b415b10 commit 0d7e3bc
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
FROM varikin/golang-glide-alpine AS build
WORKDIR /go/src/github.com/k8guard/k8guard-action
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-action/k8guard-action /
ADD k8guard-action /
EXPOSE 3000
CMD ["/k8guard-action"]
CMD ["/k8guard-action"]


# 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-action
# 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-action/k8guard-action /
# EXPOSE 3000
# CMD ["/k8guard-action"]

0 comments on commit 0d7e3bc

Please sign in to comment.