Thamaraikannan commited on
Commit
7f33a00
·
verified ·
1 Parent(s): 1f897b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -26
Dockerfile CHANGED
@@ -1,26 +1,26 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.10-slim
3
-
4
- # Set the working directory inside the container
5
- WORKDIR /app
6
-
7
- # Install system dependencies
8
- RUN apt-get update && apt-get install -y \
9
- gcc \
10
- libcurl4-openssl-dev \
11
- libssl-dev \
12
- && rm -rf /var/lib/apt/lists/*
13
-
14
- # Install Python dependencies
15
- COPY requirements.txt .
16
-
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy the rest of the application code
20
- COPY . .
21
-
22
- # Expose the port FastAPI runs on
23
- EXPOSE 80
24
-
25
- # Run the application with Uvicorn
26
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ gcc \
10
+ libcurl4-openssl-dev \
11
+ libssl-dev \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Install Python dependencies
15
+ COPY requirements.txt .
16
+
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Copy the rest of the application code
20
+ COPY . .
21
+
22
+ # Expose the port FastAPI runs on
23
+ EXPOSE 80
24
+
25
+ # Run the application with Uvicorn
26
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]