Last active
September 16, 2016 21:12
-
-
Save raygunsix/8dd6eb649b3510d9fd80da6a1cbf82a5 to your computer and use it in GitHub Desktop.
Dockerfile for simple netcat daemon
This file contains 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
# 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