Created
October 28, 2014 21:09
-
-
Save filipenos/1eb660556177fcb29ce5 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
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"] |
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
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