1 FROM ipfire/pakfire:latest
2 MAINTAINER jonatanschlag
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@"
10 # Install all dependencies
26 # Install more python dependencies
27 RUN pip install geoip2
30 RUN groupadd -g 2000 pbs && \
31 useradd --system --no-create-home --shell /bin/bash --uid 2000 --gid 2000 pbs
33 # Install LDAP certificate
34 RUN mkdir -p /etc/openldap/cacerts
35 COPY src/misc/lets-encrypt-x3-cross-signed.pem /etc/openldap/cacerts/
36 RUN c_rehash -v /etc/openldap/cacerts
38 # Copy the source code
39 COPY . /build/pakfire-build-service
41 WORKDIR /build/pakfire-build-service
43 # Compile the build service
45 ./configure --prefix=/usr --sysconfdir=/etc \
46 && make && make check && make install && rm -rf /build/pakfire-build-service
52 RUN yum remove -y *-devel && yum autoremove -y && yum clean all
56 # Define default command.