Mercurial > hg > orthanc-object-storage
annotate Dockerfile @ 135:02168cb50699
back to mainline
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 20 Dec 2023 16:05:41 +0100 |
parents | 6aa3ec905f58 |
children |
rev | line source |
---|---|
75 | 1 # This is a dev Dockerfile in case you need to rebuild an osimis/orthanc image with a test |
2 # version of the s3 plugin | |
3 # docker build -t osimis/orthanc:s3test . | |
4 | |
5 FROM osimis/orthanc-builder-base:bullseye-20220328-slim-stable as orthanc-builder-base | |
6 | |
7 FROM orthanc-builder-base as build-s3-object-storage | |
8 | |
9 WORKDIR / | |
10 | |
11 WORKDIR /sources | |
12 | |
13 # (framework version used to build the cloud storage plugins) | |
124
6aa3ec905f58
migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
75
diff
changeset
|
14 RUN hg clone https://orthanc.uclouvain.be/hg/orthanc/ -r "Orthanc-1.10.1" |
75 | 15 |
16 RUN mkdir orthanc-object-storage | |
17 | |
18 COPY . /sources/orthanc-object-storage | |
19 | |
20 | |
21 RUN mkdir -p /build/cloud-storage/aws | |
22 WORKDIR /build/cloud-storage/aws | |
23 RUN cmake -DCMAKE_BUILD_TYPE:STRING=Release -DUSE_VCPKG_PACKAGES=OFF -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=/sources/orthanc/OrthancFramework/Sources /sources/orthanc-object-storage/Aws/ | |
24 RUN make -j 8 | |
25 | |
26 | |
27 FROM osimis/orthanc:22.7.0 | |
28 | |
29 COPY --from=build-s3-object-storage /build/cloud-storage/aws/libOrthancAwsS3Storage.so /usr/share/orthanc/plugins-available/ | |
30 | |
31 RUN chmod +x /usr/share/orthanc/plugins-available/* |