Last active
September 24, 2017 19:28
-
-
Save jankuo/69dc3f2e1ed121b669723b33a649d3bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
############################################################ | |
# Dockerfile to build sandbox for executing user code | |
# Based on Ubuntu | |
############################################################ | |
FROM chug/ubuntu14.04x64 | |
MAINTAINER ASAD MEMON, OSMAN ALI | |
# Update the repository sources list | |
RUN echo "deb http://mirrors.163.com/ubuntu trusty main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
#RUN apt-get upgrade | |
#Install all the languages/compilers we are supporting. | |
RUN apt-get install -y erlang gcc g++ php5-cli ruby python mono-xsp4 mono-xsp4-base mono-vbnc clojure1.4 perl mysql-server gobjc groovy scala gnustep-devel && apt-get autoremove && apt-get clean && sed -i 's/#define BASE_NATIVE_OBJC_EXCEPTIONS 1/#define BASE_NATIVE_OBJC_EXCEPTIONS 0/g' /usr/include/GNUstep/GNUstepBase/GSConfig.h | |
RUN apt-get install -y npm | |
RUN apt-get install -y golang-go | |
RUN apt-get install -y nodejs | |
RUN ln -s "$(which nodejs)" /usr/local/bin/node | |
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org | |
RUN cnpm install -g underscore request express shelljs passport http sys jquery lodash async mocha moment connect validator restify pug ejs ws co when helmet fs-extra brain mustache should backbone forever debug && export NODE_PATH=/usr/local/lib/node_modules/ | |
RUN apt-get install -y | |
#prepare for Java download | |
RUN apt-get install -y python-software-properties | |
RUN apt-get install -y software-properties-common | |
#grab oracle java (auto accept licence) | |
RUN add-apt-repository -y ppa:webupd8team/java | |
RUN apt-get update | |
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
RUN apt-get install -y oracle-java7-installer | |
RUN apt-get install -y curl | |
RUN mkdir -p /opt/rust && \ | |
curl https://sh.rustup.rs -sSf | HOME=/opt/rust sh -s -- --no-modify-path -y && \ | |
chmod -R 777 /opt/rust | |
RUN apt-get install -y sudo | |
RUN apt-get install -y bc | |
RUN echo "mysql ALL = NOPASSWD: /usr/sbin/service mysql start" | cat >> /etc/sudoers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment