Skip to content

Commit

Permalink
Change the base image to alpine linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Usman committed Oct 21, 2024
1 parent ea69e18 commit 428095e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FROM python:3.11-slim
FROM python:3.11-alpine

WORKDIR /usr/src/app

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

# 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 428095e

Please sign in to comment.