Skip to content

Instantly share code, notes, and snippets.

@bdaylik
Created March 9, 2015 08:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdaylik/3abf11bcbc14541ab340 to your computer and use it in GitHub Desktop.
Save bdaylik/3abf11bcbc14541ab340 to your computer and use it in GitHub Desktop.
Dockerfile used in the "Dockerize your development environment" blog post.
FROM ubuntu
RUN apt-get install -y x11-apps
ENV USER=myuser UID=1000 GID=1000
RUN addgroup --gid ${GID} ${USER}
RUN adduser --home /home/${USER} --shell /bin/bash --uid ${UID} --gid ${GID} --disabled-password ${USER}
RUN echo "${USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${USER}
RUN chmod 0440 /etc/sudoers.d/${USER}
RUN echo "deb http://dl.bintray.com/sbt/debian /" > /etc/apt/sources.list.d/sbt.list
RUN apt-get update
RUN apt-get install --force-yes -y openjdk-7-jdk git sbt
USER myuser
RUN git clone https://github.com/typesafehub/scala-logging.git ~/scala-logging
RUN sudo apt-get install -y wget
RUN wget "http://download.jetbrains.com/idea/ideaIC-14.0.3.tar.gz" -O ~/idea.tgz
RUN cd ~ && tar -xzvf ~/idea.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment