docker-bind/Dockerfile

32 lines
892 B
Docker

FROM ubuntu:12.04
MAINTAINER sameer@damagehead.com
ENV DEBIAN_FRONTEND noninteractive
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list
RUN apt-get update # 20140310
# essentials
RUN apt-get install -y vim curl wget sudo net-tools pwgen && \
apt-get install -y logrotate supervisor openssh-server && \
apt-get clean
# build tools
# RUN apt-get install -y gcc make && apt-get clean
# image specific
RUN apt-get install -y bind9 perl libnet-ssleay-perl openssl \
libauthen-pam-perl libpam-runtime libio-pty-perl \
apt-show-versions python && \
apt-get clean
ADD assets/ /app/
RUN mv /app/.vimrc /app/.bash_aliases /root/
RUN chmod 755 /app/init /app/setup/install && /app/setup/install
ADD authorized_keys /root/.ssh/
RUN chmod 700 /root/.ssh && chmod 600 /root/.ssh/authorized_keys && chown root:root -R /root/.ssh
EXPOSE 22
ENTRYPOINT ["/app/init"]
CMD ["app:start"]