13nishit commited on
Commit
144b758
·
verified ·
1 Parent(s): 42c7571

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -4
Dockerfile CHANGED
@@ -1,11 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
 
 
 
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
8
 
9
- COPY . .
10
 
11
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ #FROM python:3.9
2
+
3
+ #WORKDIR /code
4
+
5
+ #COPY ./requirements.txt /code/requirements.txt
6
+
7
+ #RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+
9
+ #COPY . .
10
+
11
+ #CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
12
+
13
+
14
+
15
+
16
+ # Use the official Python image as base
17
  FROM python:3.9
18
 
19
+ # Set the working directory in the container
20
  WORKDIR /code
21
 
22
+ # Copy the requirements file into the container at /code
23
+ COPY requirements.txt /code/
24
+
25
+ # Install any dependencies specified in requirements.txt
26
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
27
 
28
+ # Copy the rest of the application code into the container at /code
29
+ COPY . /code/
30
 
 
31