generated from FNNDSC/python-chrisapp-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 949 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Build with:
# docker build -t localhost/fnndsc/pl-dicommake .
#
# If you're proxied:
# export PROXY=<whatever>
# docker build --build-arg http_proxy=$PROXY -t localhost/fnndsc/pl-dicommake .
#
#
# Python version can be changed, e.g.
# FROM python:3.8
# FROM docker.io/fnndsc/conda:python3.10.2-cuda11.6.0
FROM docker.io/python:3.11.0-slim-bullseye
# set timezone to EDT
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/timezone
LABEL org.opencontainers.image.authors="FNNDSC <[email protected]>" \
org.opencontainers.image.title="DICOM image make" \
org.opencontainers.image.description="A ChRIS plugin that creates a new DICOM file from an existing DICOM and a new image"
WORKDIR /usr/local/src/pl-dicommake
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN apt-get update \
&& apt-get install dcmtk -y
COPY . .
ARG extras_require=none
RUN pip install ".[${extras_require}]"
CMD ["dicommake"]