Is it possible to use an environment variable on Docker's CMD?
I tried this
CMD ["/caddy", "file-server", "--browse", "--listen", $PORT]
But I got the error
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown.
ERRO[0001] error waiting for container: context canceled