Skip to content

Commit 374104e

Browse files
committed
updating dockerfile to one similar in tutor_dev
1 parent 8ee8618 commit 374104e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Dockerfile

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
FROM python:3.9
1+
FROM python:3.11
22

33
WORKDIR /code
44

55
COPY ./requirements.txt /code/requirements.txt
66

7-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7+
RUN pip install --upgrade pip
88

9-
RUN pip install --no-cache-dir transformers==4.36.2 torch==2.1.2
10-
11-
RUN pip install --upgrade --force-reinstall --no-cache-dir llama-cpp-python==0.2.32
9+
RUN pip install --no-cache-dir -r /code/requirements.txt
1210

1311
COPY . /code
1412

@@ -26,4 +24,4 @@ RUN mkdir /.cache && chmod -R 777 /.cache
2624
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true
2725
RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true
2826

29-
CMD python code/modules/vector_db.py && chainlit run code/main.py --host 0.0.0.0 --port 7860
27+
CMD python code/modules/vector_db.py && chainlit run code/main.py --host 0.0.0.0 --port 7860

0 commit comments

Comments
 (0)