Skip to content

Instantly share code, notes, and snippets.

@raygunsix
Last active September 16, 2016 21:12
Show Gist options
  • Save raygunsix/8dd6eb649b3510d9fd80da6a1cbf82a5 to your computer and use it in GitHub Desktop.
Save raygunsix/8dd6eb649b3510d9fd80da6a1cbf82a5 to your computer and use it in GitHub Desktop.
Dockerfile for simple netcat daemon
# useful for testing
# sudo docker run -it -p 8080:8080 <image name>:<tag>
FROM centos:centos7
EXPOSE 8080
RUN yum install -y python telnet
RUN echo '<html><head></head><body>hello</body></html>' >> /tmp/index.html
WORKDIR /tmp
ENTRYPOINT ["/bin/python"]
CMD ["-m","SimpleHTTPServer","8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment