forked from dockerfile/ubuntu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 1.06 KB
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
38
39
40
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:16.04
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget && \
rm -rf /var/lib/apt/lists/*
# Add files.
ADD root/.bashrc /root/.bashrc
ADD root/.gitconfig /root/.gitconfig
#ADD root/.scripts /root/.scripts
# Get some useful scripts from Github
RUN mkdir -p /root/.scripts
RUN wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -q -O /root/.scripts/git-completion.sh
RUN wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -q -O /root/.scripts/git-prompt.sh
RUN wget https://raw.githubusercontent.com/rupa/z/master/z.sh -q -O /root/.scripts/z.sh
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]