Docker run curl error

RUN cd $JBOSS_HOME
&& curl -f http://maven.dcm4che.org/org/dcm4che/jai_imageio-jboss-modules/1.2-pre-dr-b04/jai_imageio-jboss-modules-1.2-pre-dr-b04.tar.gz |tar xz
&& cd /docker-entrypoint.d/deployments
&& curl -fO http://maven.dcm4che.org/org/dcm4che/dcm4chee-arc/dcm4chee-arc-ear/5.21.0/dcm4chee-arc-ear-5.21.0-psql-secure.ear

Hi all,

I am new in docker. i face problem when i want compile dockerFile in spring boot project. we know that when we used curl in run command project run and ear file download from define curl location but some time don’t download due to net problem.
now i have download ear file and store in local directory and run from local directory.

so i have tried this command and show error. please some one help me

RUN cd $JBOSS_HOME
&& cd /docker-entrypoint.d/deployments
&& add /home/ahasan/dcm4chee-arc-github/dcm4chee-arc-ear-5.21.0-psql-secure.ear