Created
February 26, 2017 14:52
-
-
Save chikadance/8588e266c3a602b50561a0d2232b280c to your computer and use it in GitHub Desktop.
dockerfile for open chrome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
SHELL ["/bin/bash", "-c"] | |
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list | |
RUN apt update; | |
#vnstat # monitor network traffic | |
#aria2 libarchive-dev # for RoCmd::Base#untar,unzip | |
#libicu-dev g++ zlib1g # charlock_holmes | |
#libsqlite3-dev # sqlite3 | |
#bzip2 # for building ruby src | |
#libcurl4-openssl-dev # curb | |
#x11-xserver-utils for xmodmap for pass ro_cmds_global.sh, i use xmodmap switch esc and caplock | |
RUN apt install -y sudo rsync ruby make \ | |
x11-xserver-utils \ | |
zip \ | |
gedit \ | |
unzip \ | |
bzip2 \ | |
vnstat \ | |
aria2 libarchive-dev \ | |
redis-server \ | |
mosh nginx-full libreadline-dev \ | |
git \ | |
libicu-dev g++ zlib1g \ | |
libsqlite3-dev \ | |
libssl-dev \ | |
sqlite3 \ | |
libcurl4-openssl-dev \ | |
openjdk-8-jdk \ | |
fonts-wqy-microhei \ | |
xclip \ | |
chromium-browser \ | |
lsof | |
#rb depes | |
RUN apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
#ro deps | |
#RMagick dpes: libmagickwand-dev imagemagick | |
RUN apt install -y libmagickwand-dev imagemagick | |
VOLUME ["/home/roroco/ro_docker/ro-crm-4/home/roroco:/home/roroco"] | |
RUN debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
RUN debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' | |
RUN apt -y install mysql-server mysql-client libmysqlclient-dev | |
RUN mkdir -p /home/roroco/mysql | |
# needed by some ruby gems | |
RUN apt -y install gcc-5 | |
# Replace 1000 with your user / group id | |
RUN export uid=1000 gid=1000 && \ | |
mkdir -p /home/roroco && \ | |
echo "roroco:x:${uid}:${gid}:roroco,,,:/home/roroco:/bin/bash" >> /etc/passwd && \ | |
echo "roroco:x:${uid}:" >> /etc/group && \ | |
mkdir -p /etc/sudoers.d/ && \ | |
echo "roroco ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/roroco && \ | |
chmod 0440 /etc/sudoers.d/roroco && \ | |
chown ${uid}:${gid} -R /home/roroco | |
RUN echo "Asia/Shanghai" > /etc/timezone | |
# support lowriter | |
RUN apt install -y language-pack-en | |
RUN apt install libreoffice-writer -y | |
USER roroco | |
ENV HOME /home/roroco |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment