Hey there, super noob Docker user here, and I was having some issues with making a Dockerfile and building a image. I am a student and was tasked by my teacher to configure and run a PACs server using OrthanC (which has a lot of images) using Docker, and I was then going to, later, use some Python scripts and other libraries for some analysis of some DICOM files. I am also meant to publish all of that into a GitHub rep
Anyway, I believed I had to create a simple Dockerfile and a .json configuration file to simply start a OrthanC server in localhost (I was then going to modify the Dockerfile and .json config file to allow for Python usage and sending some DICOM files). By running the simple command, which the OrthanC book provides (“docker run -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc”), it runs pretty perfectly, and I can open localhost and it’s great.
However, the following Dockerfile and orthanc.json config file does not work (some phrases are written in Portuguese, which is my mother language, mostly to explain some procedures):
Dockerfile:
Utilização da imagem base oficial de OrthanC
FROM jodogne/orthanc-python
Copiando o arquivo de configuração .json, essencial para funcionamento do servidor PACs
COPY orthanc.json /config/orthanc.json
Expondo as portas necessárias (no padrão DICOM, as portas 8042 e 8043 são utilizadas)
EXPOSE 8042
EXPOSE 8043
Comando para iniciar o servidor PACs OrthanC
CMD [“orthanc”, “/config/orthanc.json”]
orthanc.json:
{
“Name”: “Orthanc-Custom”,
“DicomServer”: {
“Port”: 8042
},
“HttpServer”: {
“Port”: 8043,
“AllowOrigin”: “*”,
“RemoteAccessAllowed”: true
},
“Storage”: {
“Directory”: “/var/lib/orthanc/db”
},
“DicomScp”: {
“Enabled”: true,
“Port”: 104
}
}
I have a simple directory that has the Dockerfile and the .json in it and although it builds normally, when I try to run with docker run -p 8042:8042 -p 8043:8043 --rm orthanc-custom, it just gives the error: E0902 15:04:24.424245 MAIN main.cpp:1825] More than one configuration path were provided on the command line, aborting
Anyway, any help or tips would be greatly appreciated (University doesn’t wanna help as much lol), so thanks already!