File tree Expand file tree Collapse file tree 2 files changed +91
-274
lines changed
Expand file tree Collapse file tree 2 files changed +91
-274
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,19 @@ FROM python:3.9-slim
44# Setting 'Working Directory' inside the container
55WORKDIR /app
66
7- # Copying dependencies list
8- COPY requirements.txt
7+ # Installing System Dependencies
8+ RUN apt-get update && apt-get install -y \
9+ libgomp1 \
10+ && rm -rf /var/lib/apt/lists/*
911
10- # Installation of the dependencies
11- RUN pip install --no-cache-dir -r - requirements.txt
12+ # Copy dependency list first (for better caching)
13+ COPY requirements.txt .
1214
13- # Copying the Application Code and Model files
14- COPY fastapi_app.py
15+ # Install dependencies
16+ RUN pip install --no-cache-dir -r requirements.txt
17+
18+ # Copy the Application Code and Model Files
19+ COPY fastapi_app.py .
1520COPY *.joblib .
1621
1722# Expose the port FastAPI will be running
You can’t perform that action at this time.
0 commit comments