-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (42 loc) · 1.37 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Ubuntu Dockerfile
#
# https://github.com/dockerfile/ubuntu
#
# Pull base image.
FROM ubuntu:14.04
MAINTAINER stuart nixon <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Keep upstart from complaining
#RUN dpkg-divert --local --rename --add /sbin/initctl
#RUN ln -sf /bin/true /sbin/initctl
# set non interactive
ENV DEBIAN_FRONTEND noninteractive
# add stock local ubuntu apt repos list
ADD ubuntu-sources.list /etc/apt/sources.list
# Install.
RUN \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 16126D3A3E5C1192 && \
locale-gen en_GB en_GB.UTF-8 && \
echo "Europe/London" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -qy build-essential && \
apt-get install -qy software-properties-common && \
apt-get install -qy byobu curl git htop man unzip vim wget rsync \
supervisor apt-utils lsb-release bzip2 util-linux \
unrar rar tar zip ca-certificates \
binutils binfmt-support && \
rm -rf /var/lib/apt/lists/*
# Add files.
ADD root/.bashrc /root/.bashrc
ADD root/.gitconfig /root/.gitconfig
ADD root/.scripts /root/.scripts
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# Define default command.
CMD ["bash"]