Skip to content

Commit

Permalink
Remove pushing of the image and used slim instead of alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Usman committed Oct 21, 2024
1 parent 6fee6ed commit 1f6da96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker-build-and-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ jobs:
run: |
docker build -t tf2.4_ivim-mri_codecollection -f Docker/Dockerfile .
- name: Save and compress Docker image
run: |
docker save tf2.4_ivim-mri_codecollection | gzip > tf2.4_ivim-mri_codecollection.tar.gz
- name: Run Docker container
run: |
docker run --rm --name TF2.4_IVIM-MRI_CodeCollection \
Expand Down
16 changes: 7 additions & 9 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
FROM python:3.11-alpine
FROM python:3.11-slim

WORKDIR /usr/src/app

# Install build tools and necessary libraries on Alpine
RUN apk add --no-cache \
build-base \
libssl3 \
openssl-dev
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Copy and install Python dependencies
COPY ../requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY .. .

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

0 comments on commit 1f6da96

Please sign in to comment.