Skip to content

Instantly share code, notes, and snippets.

@filipenos
Created October 28, 2014 21:09
Show Gist options
  • Save filipenos/1eb660556177fcb29ce5 to your computer and use it in GitHub Desktop.
Save filipenos/1eb660556177fcb29ce5 to your computer and use it in GitHub Desktop.
FROM ubuntu:latest
RUN apt-get update --yes && \
apt-get install --yes npm nodejs nodejs-legacy \
golang default-jdk python mercurial git
RUN npm -g install codebox
RUN useradd codebox -d /home/codebox
VOLUME ["/home/codebox"]
EXPOSE 8000
ENTRYPOINT ["/bin/su", "-s", "/bin/bash", "codebox", "--","/usr/local/bin/codebox"]
CMD ["--hostname", "0.0.0.0","run", "/home/codebox"]
build:
docker build -t filipenos/codebox:beta .
run:
docker run -i -v /root/codebox -p 80:8000 filipenos/codebox:betaroot@box:~/codebox#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment