Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -3,10 +3,6 @@ FROM python:3.10.12
|
|
3 |
|
4 |
RUN apt-get update && apt-get install -y unzip wget
|
5 |
|
6 |
-
# RUN wget https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip && \
|
7 |
-
# unzip dcm2niix_lnx.zip && \
|
8 |
-
# cp dcm2niix /usr/local/bin
|
9 |
-
|
10 |
# Set up a new user named "user" with user ID 1000
|
11 |
RUN useradd -m -u 1000 user
|
12 |
|
@@ -29,10 +25,13 @@ RUN pip install --no-cache-dir --upgrade pip
|
|
29 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
30 |
COPY --chown=user . $HOME/app
|
31 |
|
|
|
32 |
RUN wget https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip && \
|
33 |
unzip dcm2niix_lnx.zip && \
|
34 |
cp dcm2niix /home/user/.local/bin
|
35 |
|
|
|
|
|
36 |
# Install any needed packages specified in requirements.txt
|
37 |
RUN pip install --no-cache-dir -r requirements.txt
|
38 |
|
|
|
3 |
|
4 |
RUN apt-get update && apt-get install -y unzip wget
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# Set up a new user named "user" with user ID 1000
|
7 |
RUN useradd -m -u 1000 user
|
8 |
|
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
+
# Download and install dcm2niix
|
29 |
RUN wget https://github.com/rordenlab/dcm2niix/releases/latest/download/dcm2niix_lnx.zip && \
|
30 |
unzip dcm2niix_lnx.zip && \
|
31 |
cp dcm2niix /home/user/.local/bin
|
32 |
|
33 |
+
RUN dcm2niix -h
|
34 |
+
|
35 |
# Install any needed packages specified in requirements.txt
|
36 |
RUN pip install --no-cache-dir -r requirements.txt
|
37 |
|