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 46
46
run : |
47
47
docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
48
48
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
-
53
49
- name : Run Docker container
54
50
run : |
55
51
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
2
2
3
3
WORKDIR /usr/src/app
4
4
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/*
10
10
11
- # Copy and install Python dependencies
12
11
COPY ../requirements.txt ./
12
+
13
13
RUN pip install --no-cache-dir -r requirements.txt
14
14
15
- # Copy the rest of the application
16
15
COPY .. .
17
16
18
- # Define the entry point
19
17
ENTRYPOINT ["python3" , "-m" , "WrapImage.nifti_wrapper" ]
You can’t perform that action at this time.
0 commit comments