Docker file to make Gnome environment

FROM ubuntu:12.04.5
MAINTAINER Sunjoo Park 

RUN cat /etc/apt/sources.list |sed 's/archive.ubuntu.com/ftp.daum.net/g' > /tmp/sources.list
RUN cat /tmp/sources.list |sed 's/archive.ubuntu.com/ftp.daum.net/g' > /tmp/sources.list.1
RUN cp /etc/apt/sources.list /etc/apt/sources.list.backup
RUN cp /tmp/sources.list.1 /etc/apt/sources.list 

RUN apt-get update
RUN apt-get install -y --force-yes --fix-missing htop vim git wget gcc g++ autoconf make bzip2 gzip tar sudo time net-tools openssh-server openssh-client ctags groovy sshpass diffstat texinfo gawk chrpath build-essential
RUN apt-get install -y --force-yes --fix-missing cifs-utils smbclient nfs-common
RUN useradd -s /bin/bash -b /home -m soyul
RUN echo "soyul:lge123" |chpasswd 
RUN echo "root:lge123" |chpasswd 
RUN usermod -aG sudo soyul 
RUN chmod 777 /tmp/*
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN mkdir -p /var/run/sshd
RUN apt-get install -y --force-yes language-pack-ko language-pack-ko-base
#RUN apt-get install -y --force-yes gitg
#RUN apt-get install -y --force-yes gnome
#RUN apt-get install -y --force-yes firefox
#RUN apt-get install -y --force-yes terminator

#RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf 
#RUN chown -R www-data:www-data /var/lib/nginx


WORKDIR /


EXPOSE 80
EXPOSE 8080
EXPOSE 8000 
EXPOSE 22
EXPOSE 443

CMD ["/usr/sbin/sshd", "-D"]
Advertisements

Author: all4dich

http://webchat.freenode.net/?channels=node.js

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s