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