]>
Commit | Line | Data |
---|---|---|
576ff900 JS |
1 | FROM ipfire/pakfire:latest |
2 | MAINTAINER jonatanschlag | |
3 | ||
4 | LABEL \ | |
5 | org.ipfire.pakfire.name = "@PACKAGE_NAME@" \ | |
6 | org.ipfire.pakfire.url = "https://pakfire.ipfire.org" \ | |
7 | org.ipfire.pakfire.vendor = "IPFire Project" \ | |
8 | org.ipfire.pakfire.version = "@PACKAGE_VERSION@" | |
9 | ||
10 | # Install all dependencies | |
11 | RUN yum install -y \ | |
12 | autoconf \ | |
13 | intltool \ | |
14 | make \ | |
1418c17f | 15 | python2-pip \ |
576ff900 | 16 | python-daemon \ |
6e7c8f1b | 17 | python-ldap \ |
576ff900 JS |
18 | python-memcached \ |
19 | python-psycopg2 \ | |
20 | python-tornado \ | |
21 | pytz-2016.10 \ | |
22 | && yum clean all | |
23 | ||
1418c17f MT |
24 | # Install more python dependencies |
25 | RUN pip install geoip2 | |
26 | ||
576ff900 JS |
27 | # Create a user |
28 | RUN groupadd -g 2000 pbs && \ | |
29 | useradd --system --no-create-home --shell /bin/bash --uid 2000 --gid 2000 pbs | |
30 | ||
31 | # Copy the source code | |
32 | COPY . /build/pakfire-build-service | |
33 | ||
34 | WORKDIR /build/pakfire-build-service | |
35 | ||
36 | # Compile the build service | |
37 | RUN ./autogen.sh && \ | |
38 | ./configure --prefix=/usr --sysconfdir=/etc \ | |
0adaac20 | 39 | && make && make check && make install && rm -rf /build/pakfire-build-service |
576ff900 JS |
40 | |
41 | # Go back to /root | |
42 | WORKDIR /root | |
43 | ||
44 | # Cleanup | |
45 | RUN yum remove -y *-devel && yum autoremove -y && yum clean all | |
46 | ||
47 | USER pbs | |
48 | ||
49 | # Define default command. | |
50 | CMD ["/bin/bash"] | |
51 |