Permalink
Browse files

Moved from nc to httpd (#2)

nc was halting after a few days. I suspect it being related to port permission issues, so moving to an actual http daemon to serve traffic was a simple change.
  • Loading branch information...
cameronswinoga authored and crccheck committed Jul 31, 2017
1 parent 0004918 commit c35d2d5ec8c2989ecad3fef63d9633a4f74ba7c7
Showing with 6 additions and 6 deletions.
  1. +4 −4 Dockerfile
  2. +2 −2 index.html
View
@@ -1,10 +1,10 @@
FROM busybox
MAINTAINER Chris <c@crccheck.com>
ADD index.html /index.html
ADD index.html /www/index.html
EXPOSE 8000
# Use shell syntax because I'm lazy/ Note that busybox's netcat is different:
# http://www.busybox.net/downloads/BusyBox.html#nc
CMD while true ; do nc -l -p 8000 < /index.html ; done
# Create a basic webserver and sleep forever
CMD httpd -p 8000 -h /www; tail -f /dev/null
View
@@ -1,5 +1,4 @@
HTTP/1.0 200 OK
<xmp>
Hello World
@@ -11,3 +10,4 @@
\______ o _,/
\ \ _,'
`'--.._\..--''
</xmp>

0 comments on commit c35d2d5

Please sign in to comment.