forked from openshift/assisted-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.assisted-installer-build
34 lines (27 loc) · 1.09 KB
/
Dockerfile.assisted-installer-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS golang
ENV GOFLAGS=""
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0 && \
go install golang.org/x/tools/cmd/[email protected] && \
go install github.com/onsi/ginkgo/[email protected] && \
go install go.uber.org/mock/[email protected] && \
go install gotest.tools/[email protected] && \
go install github.com/axw/gocov/[email protected] && \
go install github.com/AlekSi/[email protected]
FROM quay.io/centos/centos:stream9
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
dnf install -y \
docker-ce \
docker-ce-cli \
containerd.io \
make \
git \
openssl-devel \
gcc \
&& dnf clean all
ENV GOROOT=/usr/lib/golang
ENV GOPATH=/opt/app-root/src/go
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
COPY --from=golang $GOPATH $GOPATH
COPY --from=golang $GOROOT $GOROOT
RUN chmod 775 -R $GOPATH && chmod 775 -R $GOROOT