Skip to content

Commit 91d81c9

Browse files
Adding updated the README.md and Dockerfile
1 parent 61c85b3 commit 91d81c9

File tree

2 files changed

+91
-274
lines changed

2 files changed

+91
-274
lines changed

Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ FROM python:3.9-slim
44
# Setting 'Working Directory' inside the container
55
WORKDIR /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 .
1520
COPY *.joblib .
1621

1722
# Expose the port FastAPI will be running

0 commit comments

Comments
 (0)