Skip to content

Instantly share code, notes, and snippets.

@cGuille
Last active August 29, 2015 14:27
Show Gist options
  • Save cGuille/6419cbbacb5c878347a0 to your computer and use it in GitHub Desktop.
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
FROM debian:8.1
MAINTAINER @cGuille <cguille.dev@gmail.com>
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