-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (31 loc) · 1.27 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
27
28
29
30
31
32
33
34
35
36
37
############################################################
# Dockerfile
############################################################
# Set the base image
FROM ubuntu:18.04
############################################################
# Configuration
############################################################
ENV VERSION "2.22.0"
############################################################
# Configuration
############################################################
ADD rootfs /
############################################################
# Installation
############################################################
RUN apt-get update &&\
apt-get install -y --no-install-recommends bash wget ca-certificates make autoconf libcurl4-gnutls-dev gettext gcc zlib1g-dev &&\
wget https://www.kernel.org/pub/software/scm/git/git-${VERSION}.tar.gz &&\
tar xf git-${VERSION}.tar.gz &&\
cd git-${VERSION} &&\
./configure --prefix=/usr/local --without-tcltk &&\
make all &&\
make install &&\
rm -rf git-${VERSION} &&\
apt-get remove -y wget ca-certificates make autoconf libcurl4-gnutls-dev gcc zlib1g-dev &&\
rm -rf /var/lib/apt/lists/*
############################################################
# Execution
############################################################
CMD [ "git", "help"]