Initial commit
Browse files- Dockerfile +4 -9
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
PATH=/home/user/.local/bin:$PATH
|
| 6 |
-
WORKDIR $HOME/app
|
| 7 |
-
COPY --chown=user . $HOME/app
|
| 8 |
-
COPY ./requirements.txt ~/app/requirements.txt
|
| 9 |
-
RUN pip install -r requirements.txt
|
| 10 |
COPY . .
|
| 11 |
-
CMD ["
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
+
WORKDIR /code
|
| 3 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 4 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY . .
|
| 6 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0","--port", "7860"]
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
cohere==4.37
|
| 3 |
openai==1.3.5
|
| 4 |
tiktoken==0.5.1
|
|
|
|
| 1 |
+
pip install -r requirements.txtchainlit==0.7.700
|
| 2 |
cohere==4.37
|
| 3 |
openai==1.3.5
|
| 4 |
tiktoken==0.5.1
|