following lines doesnt't work inside the docker spec and it is not creating directory. CMD mkdir /var/clamav-rest COPY target/clamav-rest-1.0.2.jar ../../var/clamav-rest/