Spaces:
Sleeping
Sleeping
change port
Browse files- Dockerfile +2 -2
- api/main.py +1 -1
Dockerfile
CHANGED
|
@@ -14,11 +14,11 @@ RUN pip install --trusted-host pypi.python.org -r requirements.txt
|
|
| 14 |
COPY api .
|
| 15 |
|
| 16 |
# Expose the port the app runs on
|
| 17 |
-
EXPOSE
|
| 18 |
|
| 19 |
#todo these keys are environment specific
|
| 20 |
ENV OPENAI_API_KEY=zzz
|
| 21 |
ENV QDRANT_URL="https://32f125d3-5ab1-4058-a10a-bd38a1ebd647.us-east-1-0.aws.cloud.qdrant.io"
|
| 22 |
ENV STORE="QDRANT"
|
| 23 |
# Start the application using Uvicorn
|
| 24 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 14 |
COPY api .
|
| 15 |
|
| 16 |
# Expose the port the app runs on
|
| 17 |
+
EXPOSE 7860
|
| 18 |
|
| 19 |
#todo these keys are environment specific
|
| 20 |
ENV OPENAI_API_KEY=zzz
|
| 21 |
ENV QDRANT_URL="https://32f125d3-5ab1-4058-a10a-bd38a1ebd647.us-east-1-0.aws.cloud.qdrant.io"
|
| 22 |
ENV STORE="QDRANT"
|
| 23 |
# Start the application using Uvicorn
|
| 24 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
api/main.py
CHANGED
|
@@ -33,4 +33,4 @@ async def log_requests(request, call_next):
|
|
| 33 |
|
| 34 |
|
| 35 |
if __name__ == "__main__":
|
| 36 |
-
uvicorn.run(app, host="0.0.0.0", port=8080)
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
if __name__ == "__main__":
|
| 36 |
+
uvicorn.run(app, host="0.0.0.0", port=8080)
|