-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (21 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM centos:5
MAINTAINER [email protected]
# This image extends a basic Centos 5 system by installing some packages
# needed for developmemt.
# Since Centos5 is EOL since April 2017, yum needs to check the "vault"-repositories
# (copied from https://github.com/astj/docker-centos5-vault )
COPY ./yum.repos.d/ /etc/yum.repos.d/
# install a bunch of development packages
RUN yum update -y && \
yum install libidn libXext mc joe nano wget curl.x86_64 strace subversion sudo man man-pages -y && \
yum groupinstall "Development Tools" -y && \
yum install libxml2-devel libjpeg-devel mesa-libGLU-devel freetype-devel fontconfig-devel apr-devel apr-util-devel openssl-devel -y && \
yum install libX11-devel libXext-devel libXrender-devel libXi-devel libXrandr-devel libXinerama-devel libXv-devel libXcursor-devel libSM-devel -y
# install cmake
WORKDIR /opt
RUN mkdir -p /tmp/dl && \
wget -P /tmp/dl --no-check-certificate https://cmake.org/files/v3.6/cmake-3.6.3-Linux-x86_64.tar.gz && \
wget -P /tmp/dl --no-check-certificate https://cmake.org/files/v3.1/cmake-3.1.3-Linux-x86_64.tar.gz && \
tar -zxvf /tmp/dl/cmake-3.6.3-Linux-x86_64.tar.gz && \
tar -zxvf /tmp/dl/cmake-3.1.3-Linux-x86_64.tar.gz && \
rm /tmp/dl/*