Skip to content

Instantly share code, notes, and snippets.

@ushu
Created October 16, 2014 16:08
Show Gist options
  • Save ushu/5bb4ea0c4ef9a8299437 to your computer and use it in GitHub Desktop.
Save ushu/5bb4ea0c4ef9a8299437 to your computer and use it in GitHub Desktop.
Another Dockerfile to run compiled program
FROM ubuntu:trusty
RUN apt-get update
# C/C++
RUN apt-get install -y build-essential
# Ruby
RUN apt-get install -y ruby
# Python
RUN apt-get install -y python
# Create a /code directory & mount point
RUN mkdir -p /code
VOLUME [ "/code" ]
# Add the build.sh runner script
ADD build.sh /build.sh
RUN chmod +x /build.sh
ENTRYPOINT [ "/build.sh" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment