ugaray96 commited on
Commit
e9748e6
β€’
2 Parent(s): c11f999 3a8ed8b

Merge pull request #16 from ugm2:feature/custom_docker

Browse files
Files changed (3) hide show
  1. Dockerfile +23 -0
  2. README.md +2 -3
  3. requirements.txt +1 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.8.9
2
+
3
+ WORKDIR /app
4
+
5
+ COPY ./requirements.txt /app/requirements.txt
6
+ COPY ./packages.txt /app/packages.txt
7
+
8
+ RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
9
+ RUN pip3 install --no-cache-dir -r /app/requirements.txt
10
+
11
+ # User
12
+ RUN useradd -m -u 1000 user
13
+ USER user
14
+ ENV HOME /home/user
15
+ ENV PATH $HOME/.local/bin:$PATH
16
+
17
+ WORKDIR $HOME
18
+ RUN mkdir app
19
+ WORKDIR $HOME/app
20
+ COPY . $HOME/app
21
+
22
+ EXPOSE 8501
23
+ CMD streamlit run app.py
README.md CHANGED
@@ -3,9 +3,8 @@ title: Neural Search Demo
3
  emoji: πŸ§ πŸ”Ž
4
  colorFrom: blue
5
  colorTo: green
6
- sdk: streamlit
7
- sdk_version: 1.10.0
8
- app_file: app.py
9
  pinned: true
10
  ---
11
 
 
3
  emoji: πŸ§ πŸ”Ž
4
  colorFrom: blue
5
  colorTo: green
6
+ sdk: docker
7
+ app_port: 8501
 
8
  pinned: true
9
  ---
10
 
requirements.txt CHANGED
@@ -10,4 +10,5 @@ soundfile==0.10.3.post1
10
  espnet
11
  pydub==0.25.1
12
  espnet_model_zoo==0.1.7
 
13
  git+https://github.com/openai/whisper.git
 
10
  espnet
11
  pydub==0.25.1
12
  espnet_model_zoo==0.1.7
13
+ streamlit==1.10.0
14
  git+https://github.com/openai/whisper.git