Mimi commited on
Commit
5df3618
·
1 Parent(s): 5ed7b6c

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -5,16 +5,15 @@ RUN useradd -m -u 1000 user
5
  USER user
6
  ENV HOME=/home/user \
7
  PATH=/home/user/.local/bin:$PATH
 
 
 
8
  # Set default to user's home directory
9
  WORKDIR $HOME/app
10
  # Copy current files to space
11
  COPY . $HOME/app
12
-
13
  # Install system dependencies and requirements
14
- RUN apt-get update && \
15
- xargs -r -a /app/packages.txt apt-get install -y && \
16
- rm -rf /var/lib/apt/lists/* && \
17
- pip install --no-cache-dir -r $HOME/app/requirements.txt && \
18
  pip install llama-cpp-python
19
 
20
  EXPOSE 7860
 
5
  USER user
6
  ENV HOME=/home/user \
7
  PATH=/home/user/.local/bin:$PATH
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