-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
39 lines (30 loc) · 823 Bytes
/
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
# DOCKER-VERSION 1.7.1
#
# Dockerizing ubuntu14.04: Dockerfile for building ubuntu images
#
#FROM daocloud.io/library/ubuntu:latest
FROM daocloud.io/library/ubuntu:14.04
MAINTAINER xiongjun,dockerxman <[email protected]>
ENV TZ "Asia/Shanghai"
ENV TERM xterm
ADD sources.list /etc/apt/sources.list
# Install.
RUN \
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 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
# Set environment variables.
ENV HOME /root
# Define working directory.
WORKDIR /root
# expose port
EXPOSE 22
# Define default command.
CMD ["bash"]