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