Dockerfile build Error on AWS

=> ERROR [31/34] COPY /configs/* /etc/orthanc 0.0s

I manually made /etc/orthanc
mkdir /etc/orthanc

ls -l /etc/orthanc
total 0

and changed my permissions to 644 in /configs

/configs# ls -l
total 49
-rw-r–r-- 1 root root 2469 Mar 14 00:07 Dockerfile
-rw-r–r-- 1 root root 372 Mar 14 00:07 credentials.json
-rw-r–r-- 1 root root 1309 Mar 14 00:07 dicomweb.json
-rw-r–r-- 1 root root 1242 Mar 14 00:07 mysql.json
-rw-r–r-- 1 root root 38162 Mar 14 00:07 orthanc.json
-rw-r–r-- 1 root root 1603 Mar 14 00:07 postgresql.json
-rw-r–r-- 1 root root 148 Mar 14 00:07 python.json
-rw-r–r-- 1 root root 551 Mar 14 00:07 serve-folders.json
-rw-r–r-- 1 root root 646 Mar 14 00:07 webviewer.json
-rw-r–r-- 1 root root 395 Mar 14 00:07 worklists.json

and I still get the docker build error.

Is there a trick to making a Dockerfile execute properly?

Hi David,

The configs folder must be in the same folder as your Dockerfile (more info on Docker build context)

I would also highly recommend using prebuilt images like osimis/orthanc images and this kind of setup.

HTH,

Alain.

Thanks for the feed back.

“The configs folder must be in the same folder as your Dockerfile (more info on Docker build context)”

I have been uploading all of my files including the Dockerfile into an s3 bucket and then mounting it as /configs so all the files are in the same place.

“I would also highly recommend using prebuilt images like osimis/orthanc images and this kind of setup
I was using prebuilt images and had this working perfectly including Let’s Encript for my https. I then wanted to make a good backup option with an s3 bucket and was told that I was best to build with Docker.

Thanks for the feed back.

“The configs folder must be in the same folder as your Dockerfile (more info on Docker build context)”

I have been uploading all of my files including the Dockerfile into an s3 bucket and then mounting it as /configs so all the files are in the same place.

Then you should probably simply COPY *.json to /etc/orthanc/

“I would also highly recommend using prebuilt images like osimis/orthanc images and this kind of setup
I was using prebuilt images and had this working perfectly including Let’s Encript for my https. I then wanted to make a good backup option with an s3 bucket and was told that I was best to build with Docker.

I think that there is very likely a confusion since the beginning of these discussions since I now understand that you actually want to store your configuration files in an s3 bucket while many here (at least me) are trying to help you configure Orthanc to store its DICOM files in an s3 bucket using the object-storage plugin. Maybe you are trying to achieve both but I’m kinda lost now.

Best regards,

Alain.

@Alain

Yes,

COPY *.json works.
Apparently docker uses relative and not absolute paths.

Yes I wanted to make an s3 bucket object store and at the moment was using buckets as a convenient way to transfer configuration files to be used with docker.

Yes, I am still confused since I now have modules I compiled with docker but do not know how to use them.