ofermend commited on
Commit
b291987
1 Parent(s): 4e3842f

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +24 -0
  2. README.md +1 -2
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /app
4
+
5
+ COPY ./requirements.txt /app/requirements.txt
6
+ RUN pip3 install --no-cache-dir -r /app/requirements.txt
7
+
8
+ # User
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+ ENV HOME /home/user
12
+ ENV PATH $HOME/.local/bin:$PATH
13
+
14
+ WORKDIR $HOME
15
+ RUN mkdir app
16
+ WORKDIR $HOME/app
17
+ COPY . $HOME/app
18
+
19
+ EXPOSE 8501
20
+ CMD streamlit run app.py \
21
+ --server.headless true \
22
+ --server.enableCORS false \
23
+ --server.enableXsrfProtection false \
24
+ --server.fileWatcherType none
README.md CHANGED
@@ -3,8 +3,7 @@ title: Justice Harvard
3
  emoji: 🐨
4
  colorFrom: indigo
5
  colorTo: indigo
6
- sdk: streamlit
7
- sdk_version: 1.32.2
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
3
  emoji: 🐨
4
  colorFrom: indigo
5
  colorTo: indigo
6
+ sdk: docker
 
7
  app_file: app.py
8
  pinned: false
9
  license: apache-2.0