]>
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 \ | |
15 | python-daemon \ | |
16 | python-memcached \ | |
17 | python-psycopg2 \ | |
18 | python-tornado \ | |
19 | pytz-2016.10 \ | |
20 | && yum clean all | |
21 | ||
22 | # Create a user | |
23 | RUN groupadd -g 2000 pbs && \ | |
24 | useradd --system --no-create-home --shell /bin/bash --uid 2000 --gid 2000 pbs | |
25 | ||
26 | # Copy the source code | |
27 | COPY . /build/pakfire-build-service | |
28 | ||
29 | WORKDIR /build/pakfire-build-service | |
30 | ||
31 | # Compile the build service | |
32 | RUN ./autogen.sh && \ | |
33 | ./configure --prefix=/usr --sysconfdir=/etc \ | |
34 | make && make check && make install && rm -rf /build/pakfire-build-service | |
35 | ||
36 | # Go back to /root | |
37 | WORKDIR /root | |
38 | ||
39 | # Cleanup | |
40 | RUN yum remove -y *-devel && yum autoremove -y && yum clean all | |
41 | ||
42 | USER pbs | |
43 | ||
44 | # Define default command. | |
45 | CMD ["/bin/bash"] | |
46 |