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