Skip to content

Commit 428095e

Browse files
committed
Change the base image to alpine linux
1 parent ea69e18 commit 428095e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Docker/Dockerfile

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

33
WORKDIR /usr/src/app
44

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/*
5+
# Install build tools and necessary libraries on Alpine
6+
RUN apk add --no-cache \
7+
build-base \
8+
libssl1.1 \
9+
openssl-dev
1010

11+
# Copy and install Python dependencies
1112
COPY ../requirements.txt ./
12-
1313
RUN pip install --no-cache-dir -r requirements.txt
1414

15+
# Copy the rest of the application
1516
COPY .. .
1617

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

0 commit comments

Comments
 (0)