mirror of
https://github.com/MichaelCade/90DaysOfDevOps.git
synced 2025-01-28 08:31:01 +07:00
11 lines
278 B
Docker
11 lines
278 B
Docker
|
FROM busybox:latest
|
||
|
ENV PORT=8000
|
||
|
|
||
|
ADD index.html /www/index.html
|
||
|
|
||
|
# EXPOSE $PORT
|
||
|
|
||
|
HEALTHCHECK .mdnc -z localhost $PORT
|
||
|
|
||
|
# Create a basic webserver and run it until the container is stopped
|
||
|
.mdecho "httpd started" && trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www -f & wait
|