Spaces:
Sleeping
Sleeping
petergits commited on
Commit ·
d6dbb50
1
Parent(s): 6bdc485
4th checking getting the port 7860 ready
Browse files- Dockerfile +13 -16
- 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 |
-
|
| 20 |
-
COPY
|
| 21 |
-
COPY
|
| 22 |
-
COPY
|
| 23 |
-
COPY
|
| 24 |
-
COPY
|
| 25 |
-
COPY
|
| 26 |
-
COPY
|
| 27 |
-
COPY
|
|
|
|
|
|
|
| 28 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 29 |
|
| 30 |
-
|
| 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
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
-
|
| 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 |
|