forked from funbox/dkrpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrpmbuilder7.docker
34 lines (24 loc) · 1.06 KB
/
rpmbuilder7.docker
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 centos:7
LABEL name="CentOS 7.x RPMBuilder Image" \
license="MIT" \
vendor="GONGLED" \
maintainer="Gleb E Goncharov" \
build-date="2018-02-08"
###############################################################################
ARG KAOS_REPO_VERSION=9.0-0
ARG GOSU_VERSION=1.10
###############################################################################
RUN yum -y -q install https://yum.kaos.io/7/release/x86_64/kaos-repo-$KAOS_REPO_VERSION.el7.noarch.rpm \
epel-release && \
yum -y -q clean metadata && \
yum -y -q update && \
yum -y -q clean all
RUN yum -y -q --enablerepo=kaos-testing install sudo rpmbuilder git make which rpmlint perfecto && \
yum -y -q clean all
RUN curl -o /usr/local/bin/gosu -sSL "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-amd64" \
&& chmod +x /usr/local/bin/gosu
COPY SOURCES/rpmbuilder7/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
VOLUME /rpmbuilder
WORKDIR /rpmbuilder
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]