Consider the following Docker file:
FROM alpine:edge EXPOSE \ # web portal 8080 \ # backdoor 8081
Built like this:
docker build .
We observe the following conclusion:
Sending build context to Docker daemon 17.1TB Step 1/2 : FROM alpine:edge
So, given that it will soon become illegal to post comments in the middle of a multi-line section: what is the new recommended way to comment multi-line commands ?
This is especially important for RUN commands, as we are advised to reduce image levels with the && commands.
Not sure when it was introduced, but I'm currently testing this in version:
🍔 docker --version Docker version 17.07.0-ce, build 8784753
I use the release stream on docker, so maybe this still doesn't look familiar if you use the Docker stabilizer.
docker dockerfile
Birchlabs
source share