Skip to content

Commit 1f6da96

Browse files
committed
Remove pushing of the image and used slim instead of alpine
1 parent 6fee6ed commit 1f6da96

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/docker-build-and-run.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ jobs:
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 \

Docker/Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
FROM python:3.11-alpine
1+
FROM python:3.11-slim
22

33
WORKDIR /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
1211
COPY ../requirements.txt ./
12+
1313
RUN pip install --no-cache-dir -r requirements.txt
1414

15-
# Copy the rest of the application
1615
COPY .. .
1716

18-
# Define the entry point
1917
ENTRYPOINT ["python3", "-m", "WrapImage.nifti_wrapper"]

0 commit comments

Comments
 (0)