This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverting multistage, because minikube uses old docker (#31)
- Loading branch information
1 parent
b415b10
commit 0d7e3bc
Showing
1 changed file
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |