ruslanmv commited on
Commit
d3bf057
·
1 Parent(s): f8f269c
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app/main.py +1 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.10.8
2
 
3
  WORKDIR /app
4
 
5
- COPY ./app/requirements.txt /app/requirements.txt
6
 
7
  # Create cache and milvus_data directories and set permissions
8
  RUN mkdir -p /app/cache /app/milvus_data && chmod -R 777 /app/cache /app/milvus_data
@@ -21,7 +21,7 @@ ENV HF_HOME=/app/cache \
21
  HF_WORKER_COUNT=1
22
 
23
  # Copy the application code
24
- COPY ./app /app
25
 
26
  # Expose the port Uvicorn will run on
27
  EXPOSE 7860
 
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt /app/requirements.txt
6
 
7
  # Create cache and milvus_data directories and set permissions
8
  RUN mkdir -p /app/cache /app/milvus_data && chmod -R 777 /app/cache /app/milvus_data
 
21
  HF_WORKER_COUNT=1
22
 
23
  # Copy the application code
24
+ COPY . /app
25
 
26
  # Expose the port Uvicorn will run on
27
  EXPOSE 7860
app/main.py CHANGED
@@ -11,7 +11,7 @@ from uuid import uuid4
11
  from langchain.text_splitter import RecursiveCharacterTextSplitter
12
  from sentence_transformers import SentenceTransformer
13
  import torch
14
- from app.milvus_singleton import MilvusClientSingleton
15
 
16
  # Set environment variables for Hugging Face cache
17
  os.environ['HF_HOME'] = '/app/cache'
 
11
  from langchain.text_splitter import RecursiveCharacterTextSplitter
12
  from sentence_transformers import SentenceTransformer
13
  import torch
14
+ from milvus_singleton import MilvusClientSingleton
15
 
16
  # Set environment variables for Hugging Face cache
17
  os.environ['HF_HOME'] = '/app/cache'