]> git.ipfire.org Git - pbs.git/blame - Dockerfile.in
On Debian, gpgme is called gpg
[pbs.git] / Dockerfile.in
CommitLineData
576ff900
JS
1FROM ipfire/pakfire:latest
2MAINTAINER jonatanschlag
3
4LABEL \
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
11RUN yum install -y \
12 autoconf \
13 intltool \
14 make \
fc83b54b 15 openssl-perl \
1418c17f 16 python2-pip \
576ff900 17 python-daemon \
6e7c8f1b 18 python-ldap \
68dd077d 19 python-markdown \
576ff900
JS
20 python-memcached \
21 python-psycopg2 \
22 python-tornado \
23 pytz-2016.10 \
24 && yum clean all
25
1418c17f
MT
26# Install more python dependencies
27RUN pip install geoip2
28
576ff900
JS
29# Create a user
30RUN groupadd -g 2000 pbs && \
31 useradd --system --no-create-home --shell /bin/bash --uid 2000 --gid 2000 pbs
32
fc83b54b
MT
33# Install LDAP certificate
34RUN mkdir -p /etc/openldap/cacerts
35COPY src/misc/lets-encrypt-x3-cross-signed.pem /etc/openldap/cacerts/
36RUN c_rehash -v /etc/openldap/cacerts
37
576ff900
JS
38# Copy the source code
39COPY . /build/pakfire-build-service
40
41WORKDIR /build/pakfire-build-service
42
43# Compile the build service
44RUN ./autogen.sh && \
45 ./configure --prefix=/usr --sysconfdir=/etc \
0adaac20 46 && make && make check && make install && rm -rf /build/pakfire-build-service
576ff900
JS
47
48# Go back to /root
49WORKDIR /root
50
51# Cleanup
52RUN yum remove -y *-devel && yum autoremove -y && yum clean all
53
54USER pbs
55
56# Define default command.
57CMD ["/bin/bash"]
58