Last active
August 29, 2015 14:27
-
-
Save cGuille/6419cbbacb5c878347a0 to your computer and use it in GitHub Desktop.
Dockerfile to run GoTTY commands inside a Docker container. Details about GoTTY here: https://github.com/yudai/gotty
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 debian:8.1 | |
MAINTAINER @cGuille <[email protected]> | |
RUN apt-get update && apt-get -y dist-upgrade | |
RUN apt-get install -y golang git | |
ENV GOPATH /usr/go | |
RUN mkdir $GOPATH | |
ENV PATH $GOPATH/bin:$PATH | |
RUN go get github.com/yudai/gotty | |
# Install whatever program you want to run through gotty: | |
# RUN apt-get install -y bsdgames | |
# ENV PATH /usr/games/:$PATH | |
ENTRYPOINT ["gotty"] | |
# Build the image: | |
# docker build -t cguille/gotty . | |
# Run a container with the built image: | |
# docker run -p 9077:8080 -it cguille/gotty [-w] /bin/bash | |
# Then open a browser at http://localhost:9077 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment