Spaces:
Runtime error
Runtime error
TKU410410103
commited on
Commit
•
6c2f106
1
Parent(s):
bcc44ab
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -4,32 +4,32 @@ FROM python:3.10
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
# Install
|
8 |
RUN apt-get update && \
|
9 |
apt-get install -y ffmpeg && \
|
10 |
rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
-
#
|
13 |
COPY requirements.txt /app/
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
-
# Clone the
|
17 |
RUN git clone https://github.com/reazon-research/ReazonSpeech /app/ReazonSpeech
|
18 |
|
19 |
-
# Install packages from the cloned repository
|
20 |
RUN pip install --no-warn-conflicts /app/ReazonSpeech/pkg/nemo-asr
|
21 |
RUN pip install /app/ReazonSpeech/pkg/nemo-asr
|
22 |
|
23 |
-
# Copy the rest of the application
|
24 |
COPY . /app
|
25 |
|
26 |
# Expose the port the app runs on
|
27 |
EXPOSE 7860
|
28 |
|
29 |
-
#
|
30 |
ENV MODULE_NAME="app.main"
|
31 |
ENV VARIABLE_NAME="app"
|
32 |
ENV PORT=7860
|
33 |
|
34 |
# Run the app using Uvicorn
|
35 |
-
CMD ["uvicorn", "
|
|
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Install system dependencies
|
8 |
RUN apt-get update && \
|
9 |
apt-get install -y ffmpeg && \
|
10 |
rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
+
# Copy the requirements file and install Python dependencies
|
13 |
COPY requirements.txt /app/
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
|
16 |
+
# Clone the necessary external repositories
|
17 |
RUN git clone https://github.com/reazon-research/ReazonSpeech /app/ReazonSpeech
|
18 |
|
19 |
+
# Install local packages from the cloned repository
|
20 |
RUN pip install --no-warn-conflicts /app/ReazonSpeech/pkg/nemo-asr
|
21 |
RUN pip install /app/ReazonSpeech/pkg/nemo-asr
|
22 |
|
23 |
+
# Copy the rest of the application source code
|
24 |
COPY . /app
|
25 |
|
26 |
# Expose the port the app runs on
|
27 |
EXPOSE 7860
|
28 |
|
29 |
+
# Environment variables for Uvicorn configuration
|
30 |
ENV MODULE_NAME="app.main"
|
31 |
ENV VARIABLE_NAME="app"
|
32 |
ENV PORT=7860
|
33 |
|
34 |
# Run the app using Uvicorn
|
35 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "$PORT"]
|