We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea69e18 commit 428095eCopy full SHA for 428095e
Docker/Dockerfile
@@ -1,17 +1,19 @@
1
-FROM python:3.11-slim
+FROM python:3.11-alpine
2
3
WORKDIR /usr/src/app
4
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/*
+# Install build tools and necessary libraries on Alpine
+RUN apk add --no-cache \
+ build-base \
+ libssl1.1 \
+ openssl-dev
10
11
+# Copy and install Python dependencies
12
COPY ../requirements.txt ./
-
13
RUN pip install --no-cache-dir -r requirements.txt
14
15
+# Copy the rest of the application
16
COPY .. .
17
18
+# Define the entry point
19
ENTRYPOINT ["python3", "-m", "WrapImage.nifti_wrapper"]
0 commit comments