90DaysOfDevOps/2022/Days/CICD/Jenkins/Pipeline/Dockerfile

11 lines
278 B
Docker
Raw Normal View History

2022-03-16 05:41:33 +07:00
FROM busybox:latest
ENV PORT=8000
ADD index.html /www/index.html
# EXPOSE $PORT
2022-04-08 03:28:42 +07:00
HEALTHCHECK .mdnc -z localhost $PORT
2022-03-16 05:41:33 +07:00
# Create a basic webserver and run it until the container is stopped
2022-04-08 03:28:42 +07:00
.mdecho "httpd started" && trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www -f & wait