After testing this by creating the ARGs similar to ENV like this:
ARG CDN_ENDPOINT \
AWS_S3_BUCKET
I got this error:
ARG requires exactly one argument definition
So judging from that, the ARG command only allows one argument. So its impossible to define multiple ARGs in a single line inside dockerfile.