mkManishKumar commited on
Commit
1b5c3e8
·
verified ·
1 Parent(s): 199d18e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -9
Dockerfile CHANGED
@@ -1,11 +1,19 @@
1
- FROM python:3.12-slim
 
 
2
  WORKDIR /app
3
- COPY requirements.txt ./requirements.txt
4
- RUN apt-get update
5
- # Install uvicorn
6
- RUN pip install uvicorn
7
- # Install dependencies
8
- RUN pip install -r requirements.txt
9
  COPY . /app
10
- ENTRYPOINT ["uvicorn", "app.py"]
11
- CMD ["--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Set the working directory in the container
4
  WORKDIR /app
5
+
6
+ # Copy the current directory contents into the container at /app
 
 
 
 
7
  COPY . /app
8
+
9
+ # Install any needed dependencies specified in requirements.txt
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Make port 80 available to the world outside this container
13
+ EXPOSE 5000
14
+
15
+ # Define environment variable
16
+ ENV NAME World
17
+
18
+ # Run app.py when the container launches
19
+ CMD ["python", "app.py"]