mangoman7002 commited on
Commit
f9bed54
·
verified ·
1 Parent(s): c23074e

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile.txt +19 -0
  2. requirements.txt +5 -0
Dockerfile.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /code
4
+
5
+ COPY ./requirements.txt /code/requirements.txt
6
+
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
+ RUN apt update
9
+ RUN apt install -y protobuf-compiler libprotobuf-dev
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV HOME=/home/user \
13
+ PATH=/home/user/.local/bin:$PATH
14
+ WORKDIR $HOME/app
15
+
16
+ COPY --chown=user . $HOME/app
17
+ RUN wget https://huggingface.co/avsolatorio/GIST-all-MiniLM-L6-v2/resolve/main/onnx/model_quantized.onnx
18
+ RUN wget https://huggingface.co/avsolatorio/GIST-all-MiniLM-L6-v2/resolve/main/tokenizer.json
19
+ CMD ["flask", "run", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ flask
2
+ protobuf
3
+ langchain_text_splitters
4
+ fastembed
5
+ numpy