Petro
commited on
Commit
·
fdf233e
1
Parent(s):
dd25592
Fix bug with weights.
Browse files- Dockerfile +5 -4
- requirements.txt → requirements.txt +0 -0
Dockerfile
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
-
RUN pip install
|
|
|
|
|
8 |
#RUN wget -O /code/zephyr-7b-beta.Q4_K_S.gguf https://huggingface.co/TheBloke/zephyr-7B-beta-GGUF/resolve/main/zephyr-7b-beta.Q4_K_S.gguf
|
9 |
|
10 |
COPY ./main.py /code/main.py
|
|
|
11 |
|
12 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
COPY requirements.txt ./requirements.txt
|
|
|
|
|
4 |
|
5 |
+
RUN python -m pip install -U pip && \
|
6 |
+
python -m pip install -r requirements.txt && \
|
7 |
+
python -m pip cache purge
|
8 |
#RUN wget -O /code/zephyr-7b-beta.Q4_K_S.gguf https://huggingface.co/TheBloke/zephyr-7B-beta-GGUF/resolve/main/zephyr-7b-beta.Q4_K_S.gguf
|
9 |
|
10 |
COPY ./main.py /code/main.py
|
11 |
+
WORKDIR /code
|
12 |
|
13 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt → requirements.txt
RENAMED
File without changes
|