]> git.ipfire.org Git - people/ms/pakfire.git/blob - Dockerfile.in
compress: Remove legacy logger
[people/ms/pakfire.git] / Dockerfile.in
1 FROM centos: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 # Update all OS packages
11 RUN yum update -y && yum clean all
12
13 # Add EPEL
14 RUN yum install -y epel-release && yum clean all
15
16 # Install all dependencies
17 RUN yum install -y \
18 autoconf \
19 file \
20 gcc \
21 git \
22 intltool \
23 libcap \
24 libcap-devel \
25 libtool \
26 libsolv \
27 libsolv-devel \
28 make \
29 python-devel \
30 xz-devel && yum clean all
31
32 # Copy the pakfire source code
33 ADD . /build/pakfire
34
35 WORKDIR /build/pakfire
36
37 # Compile pakfire
38 RUN ./autogen.sh && ./configure --prefix=/usr --sysconfdir=/etc && make -j4 && make check && make install && rm -rf /build/pakfire
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 root
47
48 # Define default command.
49 CMD ["/bin/bash"]