Skip to content

Commit

Permalink
Use Go image from registry.access.redhat.io (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy authored Dec 6, 2021
1 parent 6d15057 commit bd964e6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@

# Build Go stuff (SupervisorD, go-init)

# If you are adding any features that require a higher version of golang, such as golang 1.16 for example,
# please contact maintainers to check of the releasing systems can handle the newer versions.
FROM registry.ci.openshift.org/openshift/release:golang-1.16 AS gobuilder
FROM registry.access.redhat.com/ubi8/go-toolset:1.16.7 AS gobuilder

RUN mkdir -p /go/src/github.com/ochinchina/supervisord
ADD vendor/supervisord /go/src/github.com/ochinchina/supervisord
WORKDIR /go/src/github.com/ochinchina/supervisord
RUN mkdir -p /opt/app-root/src/go/src/github.com/ochinchina/supervisord
ADD vendor/supervisord /opt/app-root/src/go/src/github.com/ochinchina/supervisord
WORKDIR /opt/app-root/src/go/src/github.com/ochinchina/supervisord
RUN CGO_ENABLED=0 GO111MODULE=off go build -o /tmp/supervisord

RUN mkdir -p /go/src/github.com/pablo-ruth/go-init
ADD go-init/main.go /go/src/github.com/pablo-ruth/go-init/go-init.go
RUN CGO_ENABLED=0 go build -o /tmp/go-init /go/src/github.com/pablo-ruth/go-init/go-init.go
RUN mkdir -p /opt/app-root/src/go/src/github.com/pablo-ruth/go-init
ADD go-init/main.go /opt/app-root/src/go/src/github.com/pablo-ruth/go-init/go-init.go
RUN CGO_ENABLED=0 go build -o /tmp/go-init /opt/app-root/src/go/src/github.com/pablo-ruth/go-init/go-init.go

# Final image
FROM registry.access.redhat.com/ubi7/ubi
Expand Down

0 comments on commit bd964e6

Please sign in to comment.