Spaces:
Sleeping
Sleeping
- Dockerfile +7 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -4,8 +4,14 @@ 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 |
-
|
|
|
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
+
# Install dependencies
|
8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
9 |
|
10 |
+
# Explicitly install Uvicorn
|
11 |
+
RUN pip install uvicorn
|
12 |
+
|
13 |
+
# Copy the rest of the application
|
14 |
COPY . .
|
15 |
|
16 |
+
# Command to run the application
|
17 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -115,6 +115,6 @@ yfinance==0.2.38
|
|
115 |
# via -r requirements.in
|
116 |
zope-interface==6.3
|
117 |
# via datetime
|
118 |
-
|
119 |
# The following packages are considered to be unsafe in a requirements file:
|
120 |
# setuptools
|
|
|
115 |
# via -r requirements.in
|
116 |
zope-interface==6.3
|
117 |
# via datetime
|
118 |
+
uvicorn>=0.13.0
|
119 |
# The following packages are considered to be unsafe in a requirements file:
|
120 |
# setuptools
|