Hey David,
I manually built out my Dockerfile currently running out of ECS that utilizes S3 for storage and Aurora PostgreSQL as the relational database. The image itself is only about 3gig in space. I’m using the slim version of a Debian image. I’m not sure if this is helpful for you but I figured I’d pass it along for your experimentation.
FROM debian:bullseye-slim
LABEL maintainer “Callie Warner”
Port exposure 4242-DICOM 8042-web
EXPOSE 4242/tcp
EXPOSE 8042/tcp
Dockerfile args
ARG BASE_DIR=/root
Region based settings
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y curl wget tar zip unzip patch tzdata
RUN apt-get install -y libpq-dev postgresql-server-dev-all
RUN apt install -y mercurial
RUN apt install -y cmake build-essential pkg-config zlib1g-dev libssl-dev libcurl4-openssl-dev libgtest-dev libjsoncpp-dev libcrypto+±dev uuid-dev libboost-all-dev libsqlite3-dev libccd-dev ninja-build libcurl4-openssl-dev liblua5.1-0-dev libpng-dev libjpeg-dev libdcmtk2-dev libwrap0-dev libpugixml-dev libcivetweb-dev
RUN apt autoremove
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
WORKDIR $BASE_DIR
Get repos
RUN hg clone https://hg.orthanc-server.com/orthanc/
RUN hg clone https://hg.orthanc-server.com/orthanc-object-storage/
RUN hg clone https://hg.orthanc-server.com/orthanc-databases/
#Create build directories
RUN mkdir orthanc/build
RUN mkdir orthanc-object-storage/build
RUN mkdir orthanc-databases/build
Make Orthanc directories
RUN mkdir -p /etc/orthanc
RUN mkdir -p /usr/share/orthanc/plugins
Orthanc S3 Plugin
WORKDIR $BASE_DIR/orthanc-object-storage/build
RUN cmake -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_VCPKG_PACKAGES=OFF -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$BASE_DIR/orthanc/OrthancFramework/Sources …/Aws
RUN make -j 4
RUN cp *.so /usr/share/orthanc/plugins/
Orthanc PostgreSQL Plugin
WORKDIR $BASE_DIR/orthanc-databases/build
RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_SYSTEM_GOOGLE_TEST=ON -DUSE_SYSTEM_ORTHANC_SDK=OFF …/PostgreSQL
RUN make -j 4
RUN cp *.so /usr/share/orthanc/plugins/
Orthanc build
WORKDIR $BASE_DIR/orthanc/build
RUN cmake -DALLOW_DOWNLOADS=ON -DCMAKE_BUILD_TYPE:STRING=Release -DSTANDALONE_BUILD=ON -DUSE_GOOGLE_TEST_DEBIAN_PACKAGE=ON -DUSE_SYSTEM_CIVETWEB=OFF -DUSE_SYSTEM_DCMTK=OFF -DUSE_SYSTEM_OPENSSL=OFF -DUSE_SYSTEM_CURL=OFF …/OrthancServer
RUN make -j 4
RUN make install
Copy local files
COPY /configs /etc/orthanc
Change permissions to execute
RUN chmod +x /usr/share/orthanc/plugins/*
RUN chmod +x /usr/local/bin/*
Run Orthanc
WORKDIR /usr/local/sbin/
CMD [ “Orthanc”, “-verbose”, “–trace”, “/etc/orthanc/” ]