-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
2 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,20 @@ | ||
FROM oraclelinux:8 AS unibuild-image | ||
|
||
#Install pre-requisites | ||
#Install utils like tree useful for debugging | ||
#Enable powertools since contains common dependencies | ||
RUN dnf update -y && \ | ||
dnf install -y rpm rpm-build rpmdevtools m4 make sudo dnf-plugins-core epel-release tree && \ | ||
dnf config-manager --set-enabled powertools | ||
|
||
#Copy unibuild source | ||
COPY . /usr/share/unibuild/ | ||
|
||
#Install unibuild | ||
WORKDIR /usr/share/unibuild | ||
RUN make RELEASE=1 | ||
RUN /usr/share/unibuild/libexec/prep/prep | ||
|
||
#Shared volume for code to build | ||
VOLUME /app | ||
WORKDIR /app |