Docker Concepts

Static site image

An image combines static assets and a foreground web server. Verify document root, read access, listening address and HTTP response. EXPOSE does not publish a port. Confirm the expected bind address and document response; detached startup does not establish readiness.

Formal Syntax & Structure

docker syntaxdocker
Static site image

Working Example

Example Snippetdocker
FROM busybox:1.37WORKDIR /siteCOPY index.html .USER 10001:10001EXPOSE 8080CMD ["httpd", "-f", "-p", "127.0.0.1:8080", "-h", "/site"]
Docker Reference