Skip to content

Commit fded0bf

Browse files
Merge pull request #509 from ankitathomas/dockerfile-version
copy .git directory for build tag info
2 parents 6ec440c + 066dfe2 commit fded0bf

File tree

5 files changed

+5
-24
lines changed

5 files changed

+5
-24
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
55

66
WORKDIR /src
77

8-
COPY vendor vendor
9-
COPY cmd cmd
10-
COPY pkg pkg
11-
COPY Makefile go.mod go.sum ./
8+
COPY . .
129
RUN make build cross
1310

1411
# copy and build vendored grpc_health_probe

appr-registry.Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
33
RUN apk update && apk add sqlite build-base git mercurial bash
44
WORKDIR /go/src/github.com/operator-framework/operator-registry
55

6-
COPY vendor vendor
7-
COPY cmd cmd
8-
COPY pkg pkg
9-
COPY Makefile Makefile
10-
COPY go.mod go.mod
6+
COPY . .
117
RUN make static
128

139
FROM golang:1.13-alpine as probe-builder

registry.Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
33
RUN apk update && apk add sqlite build-base git mercurial bash
44
WORKDIR /build
55

6-
COPY vendor vendor
7-
COPY cmd cmd
8-
COPY pkg pkg
9-
COPY Makefile Makefile
10-
COPY go.mod go.mod
6+
COPY . .
117
RUN make static
128
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
139
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) && \

upstream-builder.Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ FROM golang:1.13-alpine as builder
33
RUN apk update && apk add sqlite build-base git mercurial bash
44
WORKDIR /build
55

6-
COPY vendor vendor
7-
COPY cmd cmd
8-
COPY pkg pkg
9-
COPY Makefile Makefile
10-
COPY go.mod go.mod
6+
COPY . .
117
RUN make static
128
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
139
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) && \

upstream-opm-builder.Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ FROM golang:1.13-alpine AS builder
33
RUN apk update && apk add sqlite build-base git mercurial bash
44
WORKDIR /build
55

6-
COPY vendor vendor
7-
COPY cmd cmd
8-
COPY pkg pkg
9-
COPY Makefile Makefile
10-
COPY go.mod go.mod
6+
COPY . .
117
RUN make static
128
RUN GRPC_HEALTH_PROBE_VERSION=v0.3.2 && \
139
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) && \

0 commit comments

Comments
 (0)