consolidate Dockerfile to be uniform. move port to readme.md
Browse files- Dockerfile +2 -2
- README.md +1 -0
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 8080
|
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", "8080"]
|
README.md
CHANGED
@@ -4,6 +4,7 @@ emoji: π
|
|
4 |
colorFrom: pink
|
5 |
colorTo: red
|
6 |
sdk: docker
|
|
|
7 |
pinned: true
|
8 |
models: ["gpt2"]
|
9 |
datasets: ["oscar-corpus/OSCAR-2109"]
|
|
|
4 |
colorFrom: pink
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
+
app_port: 8080
|
8 |
pinned: true
|
9 |
models: ["gpt2"]
|
10 |
datasets: ["oscar-corpus/OSCAR-2109"]
|