matthoffner commited on
Commit
f20b1a2
ยท
1 Parent(s): c4496bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -2
Dockerfile CHANGED
@@ -4,16 +4,26 @@ ENV PYTHONUNBUFFERED 1
4
 
5
  EXPOSE 8000
6
 
7
- WORKDIR /app
8
-
9
  COPY requirements.txt ./
10
  RUN pip install --upgrade pip && \
11
  pip install -r requirements.txt
12
 
13
  RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
14
  RUN apt-get install git-lfs
 
 
 
 
 
 
 
 
 
 
15
  RUN git clone https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML
16
 
 
 
17
  COPY . .
18
 
19
  RUN ls -al
 
4
 
5
  EXPOSE 8000
6
 
 
 
7
  COPY requirements.txt ./
8
  RUN pip install --upgrade pip && \
9
  pip install -r requirements.txt
10
 
11
  RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
12
  RUN apt-get install git-lfs
13
+
14
+ RUN useradd -m -u 1000 user
15
+
16
+ USER user
17
+
18
+ ENV HOME=/home/user \
19
+ PATH=/home/user/.local/bin:$PATH
20
+
21
+ WORKDIR $HOME/app
22
+
23
  RUN git clone https://huggingface.co/TheBloke/MPT-7B-Storywriter-GGML
24
 
25
+ COPY --chown=user . $HOME/app
26
+
27
  COPY . .
28
 
29
  RUN ls -al