agentsay commited on
Commit
173818a
·
verified ·
1 Parent(s): e66fc58

Rename DockerFIle to Dockerfile

Browse files
Files changed (1) hide show
  1. DockerFIle → Dockerfile +21 -22
DockerFIle → Dockerfile RENAMED
@@ -1,22 +1,21 @@
1
-
2
- # Use an official Python runtime as the base image
3
- FROM python:3.9-slim
4
-
5
- # Set working directory
6
- WORKDIR /app
7
-
8
- # Copy requirements file
9
- COPY requirements.txt .
10
-
11
- # Install dependencies
12
- RUN pip install --no-cache-dir -r requirements.txt
13
-
14
- # Copy the FastAPI application code
15
- COPY main.py .
16
-
17
- # Expose port 8000 for the FastAPI app
18
- EXPOSE 8000
19
-
20
- # Command to run the application with Uvicorn
21
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
22
- ```
 
1
+
2
+ # Use an official Python runtime as the base image
3
+ FROM python:3.9-slim
4
+
5
+ # Set working directory
6
+ WORKDIR /app
7
+
8
+ # Copy requirements file
9
+ COPY requirements.txt .
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the FastAPI application code
15
+ COPY main.py .
16
+
17
+ # Expose port 8000 for the FastAPI app
18
+ EXPOSE 7860
19
+
20
+ # Command to run the application with Uvicorn
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]