petergits commited on
Commit
d6dbb50
·
1 Parent(s): 6bdc485

4th checking getting the port 7860 ready

Browse files
Files changed (2) hide show
  1. Dockerfile +13 -16
  2. README.md +5 -5
Dockerfile CHANGED
@@ -15,24 +15,21 @@ ENV HOME=/home/user \
15
 
16
  # Set the working directory to the user's home directory
17
  WORKDIR $HOME/app
18
-
19
- COPY requirements.txt requirements.txt
20
- COPY create_test_audio.py .
21
- COPY generate_test_audio.py .
22
- COPY mcp_speech_client.py .
23
- COPY mcp_speech_service.py .
24
- COPY requirements.txt .
25
- COPY startup_script.py .
26
- COPY testClient.py .
27
- COPY whisper_http_wrapper.py .
 
 
28
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
29
 
30
- title: Basic Docker SDK Space
31
- emoji: 🐳
32
- colorFrom: purple
33
- colorTo: gray
34
- sdk: docker
35
- app_port: 7860
36
 
37
  CMD ["python", "startup_script.py"]
38
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
15
 
16
  # Set the working directory to the user's home directory
17
  WORKDIR $HOME/app
18
+ COPY --chown=user . $HOME/app
19
+
20
+ #COPY audio.wav ./$HOME/app
21
+ #COPY requirements.txt requirements.txt
22
+ #COPY create_test_audio.py .
23
+ #COPY generate_test_audio.py .
24
+ #COPY mcp_speech_client.py .
25
+ #COPY mcp_speech_service.py .
26
+ #COPY requirements.txt .
27
+ #COPY startup_script.py .
28
+ #COPY testClient.py .
29
+ #COPY whisper_http_wrapper.py .
30
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
31
 
32
+ EXPOSE 7860
 
 
 
 
 
33
 
34
  CMD ["python", "startup_script.py"]
35
  #CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: Docker Speech2text
3
- emoji: 📈
4
- colorFrom: red
5
- colorTo: purple
6
  sdk: docker
7
- pinned: false
8
  short_description: converting python s2t into a docker container for Spaces
9
  ---
10
 
 
1
  ---
2
+ title: Basic Docker speech to text in a docker container
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: gray
6
  sdk: docker
7
+ app_port: 7860
8
  short_description: converting python s2t into a docker container for Spaces
9
  ---
10