diff --git a/deployments/Dockerfile b/deployments/Dockerfile index ec5e2d28f..32c8fde08 100644 --- a/deployments/Dockerfile +++ b/deployments/Dockerfile @@ -14,7 +14,7 @@ FROM golang:1.17-alpine AS builder -RUN apk update && apk add --no-cache git +RUN apk add --no-cache git ADD . /horusec WORKDIR /horusec @@ -23,9 +23,9 @@ RUN go mod download RUN env GOOS=linux go build -ldflags '-s -w' -o /bin/horusec ./cmd/app/main.go -FROM docker:20.10-git +FROM docker:20.10-dind -RUN apk update --no-cache && apk upgrade --no-cache +RUN apk add git --no-cache COPY --from=builder /bin/horusec /usr/local/bin RUN chmod +x /usr/local/bin/horusec diff --git a/deployments/Dockerfile-gorelease-amd64 b/deployments/Dockerfile-gorelease-amd64 index 997474e43..e1294871c 100644 --- a/deployments/Dockerfile-gorelease-amd64 +++ b/deployments/Dockerfile-gorelease-amd64 @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM docker:20.10-git +FROM docker:20.10-dind -RUN apk update --no-cache && apk upgrade --no-cache +RUN apk add git --no-cache COPY /horusec_linux_amd64 /usr/local/bin/horusec diff --git a/deployments/Dockerfile-gorelease-arm64 b/deployments/Dockerfile-gorelease-arm64 index 3bd4037b4..196f72f5f 100644 --- a/deployments/Dockerfile-gorelease-arm64 +++ b/deployments/Dockerfile-gorelease-arm64 @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM docker:20.10-git +FROM docker:20.10-dind -RUN apk update --no-cache && apk upgrade --no-cache +RUN apk add git --no-cache COPY /horusec_linux_arm64 /usr/local/bin/horusec