This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
- Loading branch information
1 parent
6f9e0b8
commit 42f5f2f
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG GO_IMAGE | ||
ARG ENGINE_IMAGE | ||
ARG BUILD_IMAGE=fedora:29 | ||
FROM ${GO_IMAGE} as golang | ||
FROM ${ENGINE_IMAGE} as engine | ||
|
||
FROM ${BUILD_IMAGE} | ||
ENV DISTRO fedora | ||
ENV SUITE 29 | ||
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 dnf install -y rpm-build rpmlint dnf-plugins-core | ||
COPY SPECS /root/rpmbuild/SPECS | ||
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go/ | ||
COPY --from=engine /bin/dockerd /sources/ | ||
COPY --from=engine /bin/docker-proxy /sources/ | ||
COPY --from=engine /bin/docker-init /sources/ | ||
WORKDIR /root/rpmbuild | ||
ENTRYPOINT ["/bin/rpmbuild"] |