-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_OT
More file actions
30 lines (21 loc) · 746 Bytes
/
Dockerfile_OT
File metadata and controls
30 lines (21 loc) · 746 Bytes
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
27
28
29
30
FROM centos:latest
WORKDIR /git
RUN yum update && \
yum -y groupinstall "Development Tools" && \
yum -y install epel-release dh-autoreconf curl-devel expat-devel gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel && \
yum -y install asciidoc xmlto docbook2X getopt wget
RUN ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
COPY git-2.17.0.tar.gz .
RUN ls
RUN tar -zxf git-2.17.0.tar.gz
RUN ls
RUN cd git-2.17.0 && \
make configure && \
./configure --prefix=/usr && \
make all doc info && \
make install install-doc install-html install-info
RUN git clone https://github.com/git/git.git
WORKDIR git
RUN ls
RUN git checkout tags/$(git describe --tags $(git rev-list --tags --max-count=1))
CMD ["git","--version"]