90DaysOfDevOps/Days/CICD/Jenkins/Pipeline/Dockerfile
2022-03-15 22:41:33 +00:00

11 lines
280 B
Docker

FROM busybox:latest
ENV PORT=8000
ADD index.html /www/index.html
# EXPOSE $PORT
HEALTHCHECK CMD nc -z localhost $PORT
# Create a basic webserver and run it until the container is stopped
CMD echo "httpd started" && trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www -f & wait