File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 4646 run : |
4747 docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
4848
49- - name : Save and compress Docker image
50- run : |
51- docker save tf2.4_ivim-mri_codecollection | gzip > tf2.4_ivim-mri_codecollection.tar.gz
52-
5349 - name : Run Docker container
5450 run : |
5551 docker run --rm --name TF2.4_IVIM-MRI_CodeCollection \
Original file line number Diff line number Diff line change 1- FROM python:3.11-alpine
1+ FROM python:3.11-slim
22
33WORKDIR /usr/src/app
44
5- # Install build tools and necessary libraries on Alpine
6- RUN apk add --no-cache \
7- build-base \
8- libssl3 \
9- openssl-dev
5+ RUN apt-get update && apt-get install -y --no-install-recommends \
6+ build-essential \
7+ libssl-dev \
8+ && apt-get clean \
9+ && rm -rf /var/lib/apt/lists/*
1010
11- # Copy and install Python dependencies
1211COPY ../requirements.txt ./
12+
1313RUN pip install --no-cache-dir -r requirements.txt
1414
15- # Copy the rest of the application
1615COPY .. .
1716
18- # Define the entry point
1917ENTRYPOINT ["python3" , "-m" , "WrapImage.nifti_wrapper" ]
You can’t perform that action at this time.
0 commit comments