Skip to content

Commit

Permalink
Merge pull request #509 from ankitathomas/dockerfile-version
Browse files Browse the repository at this point in the history
copy .git directory for build tag info
  • Loading branch information
openshift-merge-robot committed Nov 18, 2020
2 parents 6ec440c + 066dfe2 commit fded0bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Expand Up @@ -5,10 +5,7 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

WORKDIR /src

COPY vendor vendor
COPY cmd cmd
COPY pkg pkg
COPY Makefile go.mod go.sum ./
COPY . .
RUN make build cross

# copy and build vendored grpc_health_probe
Expand Down
6 changes: 1 addition & 5 deletions appr-registry.Dockerfile
Expand Up @@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
RUN apk update && apk add sqlite build-base git mercurial bash
WORKDIR /go/src/github.com/operator-framework/operator-registry

COPY vendor vendor
COPY cmd cmd
COPY pkg pkg
COPY Makefile Makefile
COPY go.mod go.mod
COPY . .
RUN make static

FROM golang:1.13-alpine as probe-builder
Expand Down
6 changes: 1 addition & 5 deletions registry.Dockerfile
Expand Up @@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
RUN apk update && apk add sqlite build-base git mercurial bash
WORKDIR /build

COPY vendor vendor
COPY cmd cmd
COPY pkg pkg
COPY Makefile Makefile
COPY go.mod go.mod
COPY . .
RUN make static
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
Expand Down
6 changes: 1 addition & 5 deletions upstream-builder.Dockerfile
Expand Up @@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
RUN apk update && apk add sqlite build-base git mercurial bash
WORKDIR /build

COPY vendor vendor
COPY cmd cmd
COPY pkg pkg
COPY Makefile Makefile
COPY go.mod go.mod
COPY . .
RUN make static
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
Expand Down
6 changes: 1 addition & 5 deletions upstream-opm-builder.Dockerfile
Expand Up @@ -3,11 +3,7 @@ FROM golang:1.13-alpine AS builder
RUN apk update && apk add sqlite build-base git mercurial bash
WORKDIR /build

COPY vendor vendor
COPY cmd cmd
COPY pkg pkg
COPY Makefile Makefile
COPY go.mod go.mod
COPY . .
RUN make static
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \
Expand Down

0 comments on commit fded0bf

Please sign in to comment.