deepak6593 commited on
Commit
b04ba1a
·
1 Parent(s): ae79c64

adding files

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -12
Dockerfile CHANGED
@@ -1,20 +1,33 @@
1
- # Use the official Python image
2
  FROM python:3.9
3
 
4
- # Set the working directory in the container
5
  WORKDIR /code
6
 
7
- # Create a directory for the SQLite database file
8
- RUN mkdir /data && chmod 777 /data
9
 
10
- # Copy the requirements file into the container at /code
11
- COPY ./requirements.txt /code/
12
-
13
- # Install any needed packages specified in requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
15
 
16
- # Copy the rest of the application code into the container at /code
17
- COPY . /code/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- # Command to run on container start
20
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8123"]
 
 
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:app", "--host", "0.0.0.0", "--port", "7860"]
12
+
13
+
14
+ # # Use the official Python image
15
+ # FROM python:3.9
16
+
17
+ # # Set the working directory in the container
18
+ # WORKDIR /code
19
+
20
+ # # Create a directory for the SQLite database file
21
+ # RUN mkdir /data && chmod 777 /data
22
+
23
+ # # Copy the requirements file into the container at /code
24
+ # COPY ./requirements.txt /code/
25
+
26
+ # # Install any needed packages specified in requirements.txt
27
+ # RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
28
+
29
+ # # Copy the rest of the application code into the container at /code
30
+ # COPY . /code/
31
 
32
+ # # Command to run on container start
33
+ # CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8123"]