Mimi commited on
Commit
a7baf36
·
1 Parent(s): 5df3618
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. requirements.txt +2 -0
Dockerfile CHANGED
@@ -8,13 +8,13 @@ ENV HOME=/home/user \
8
  RUN apt-get update && \
9
  xargs -r -a /app/packages.txt apt-get install -y && \
10
  rm -rf /var/lib/apt/lists/*
 
11
  # Set default to user's home directory
12
  WORKDIR $HOME/app
13
  # Copy current files to space
14
- COPY . $HOME/app
15
  # Install system dependencies and requirements
16
- RUN pip install --no-cache-dir -r $HOME/app/requirements.txt && \
17
- pip install llama-cpp-python
18
 
19
  EXPOSE 7860
20
  CMD streamlit run app.py \
 
8
  RUN apt-get update && \
9
  xargs -r -a /app/packages.txt apt-get install -y && \
10
  rm -rf /var/lib/apt/lists/*
11
+
12
  # Set default to user's home directory
13
  WORKDIR $HOME/app
14
  # Copy current files to space
15
+ COPY --chown=user . $HOME/app
16
  # Install system dependencies and requirements
17
+ RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
 
18
 
19
  EXPOSE 7860
20
  CMD streamlit run app.py \
requirements.txt CHANGED
@@ -2,3 +2,5 @@ streamlit
2
  requests
3
  transformers
4
  accelerate
 
 
 
2
  requests
3
  transformers
4
  accelerate
5
+ llama-cpp-python
6
+ langchain-core