hugbump radames commited on
Commit
26bf156
·
1 Parent(s): 2ad08c5

need users with permission to write (#2)

Browse files

- need users with permission to write (3fdce6b6086b009972785453c379cc0553c2ebd7)


Co-authored-by: Radamés Ajna <radames@users.noreply.huggingface.co>

Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -5,5 +5,17 @@ WORKDIR /app
5
  COPY requirements.txt ./requirements.txt
6
  RUN pip3 install -r requirements.txt
7
  RUN python -m spacy download en_core_web_sm --default-timeout=900
8
- COPY . .
 
 
 
 
 
 
 
 
 
 
 
 
9
  CMD streamlit run app.py
 
5
  COPY requirements.txt ./requirements.txt
6
  RUN pip3 install -r requirements.txt
7
  RUN python -m spacy download en_core_web_sm --default-timeout=900
8
+
9
+ # User
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV HOME /home/user
13
+ ENV PATH $HOME/.local/bin:$PATH
14
+ WORKDIR $HOME
15
+ RUN mkdir app
16
+ WORKDIR $HOME/app
17
+
18
+ COPY . $HOME/app
19
+
20
+ EXPOSE 8501
21
  CMD streamlit run app.py