Dockerfile Expose Example Jun 2026

HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost:80 || exit 1

COPY nginx.conf /etc/nginx/nginx.conf

Here is how we use EXPOSE to signal that port 3000 is the gateway to this app: dockerfile dockerfile expose example