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