Redmind commited on
Commit
5e7d3a4
·
verified ·
1 Parent(s): 026aa93

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +17 -0
  2. env +6 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ ENV PATH="/home/user/.local/bin:$PATH"
9
+
10
+ WORKDIR /app
11
+
12
+ COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ COPY --chown=user . /app
16
+
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
env ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ OPENAI_API_KEY='sk-proj-AnXUB4dJmJliZETCm67WT3BlbkFJ7dp4DAXRFQ6pXAyK7gWE'
2
+ DB_URI='mysql+mysqlconnector://redmindgen:51(xtzb0z_P8wRkowkDGQe@188.166.133.137:3306/collegedb'
3
+ POST_DB_URI='postgresql+psycopg2://postgres:postpass@193.203.162.39:5432/warehouseAi'
4
+ VECTOR_DB_PATH_DOCUMENTS=vectordb/openai_dbstore/documents
5
+ VECTOR_DB_PATH_DB=vectordb/openai_dbstore/db
6
+ LOG_PATH=logs/