EXPOSE informs Docker that the container listens on the specified port(s). Docker uses this when linking containers or publishing ports with -P in docker run. EXPOSE does not publish the port by itself — you still need -p or -P at runtime.
Example:
EXPOSE 3000
Andrew Dorokhov