mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 22:30:22 -04:00
18 lines
786 B
Docker
18 lines
786 B
Docker
FROM fedora:28
|
|
RUN dnf -y upgrade
|
|
RUN dnf install -y @development-tools fedora-packager
|
|
RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel libtool-ltdl-devel pkgconfig selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common
|
|
ARG GO_VERSION
|
|
ENV DISTRO fedora
|
|
ENV SUITE 28
|
|
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local
|
|
ENV GOPATH /go
|
|
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
|
|
ENV AUTO_GOPATH 1
|
|
ENV DOCKER_BUILDTAGS pkcs11 seccomp selinux
|
|
ENV RUNC_BUILDTAGS seccomp selinux
|
|
RUN mkdir -p /go/src/github.com/docker && mkdir -p /go/src/github.com/opencontainers
|
|
COPY docker-ce.spec /root/rpmbuild/SPECS/docker-ce.spec
|
|
WORKDIR /root/rpmbuild
|
|
ENTRYPOINT ["/bin/rpmbuild"]
|