Spaces:
Runtime error
Runtime error
imseldrith
commited on
Commit
•
c461fcc
1
Parent(s):
c410916
Update Dockerfile
Browse files- Dockerfile +16 -1
Dockerfile
CHANGED
@@ -1,8 +1,23 @@
|
|
1 |
FROM continuumio/miniconda3
|
|
|
|
|
2 |
RUN apt update && apt install espeak-ng ffmpeg -y
|
|
|
|
|
3 |
WORKDIR /root
|
|
|
|
|
4 |
ADD ./requirements.txt .
|
5 |
RUN pip install -r requirements.txt
|
|
|
|
|
6 |
ADD ./src .
|
|
|
|
|
|
|
|
|
|
|
7 |
RUN python -m nltk.downloader punkt
|
8 |
-
|
|
|
|
|
|
1 |
FROM continuumio/miniconda3
|
2 |
+
|
3 |
+
# Install necessary packages
|
4 |
RUN apt update && apt install espeak-ng ffmpeg -y
|
5 |
+
|
6 |
+
# Set working directory
|
7 |
WORKDIR /root
|
8 |
+
|
9 |
+
# Add requirements file and install dependencies
|
10 |
ADD ./requirements.txt .
|
11 |
RUN pip install -r requirements.txt
|
12 |
+
|
13 |
+
# Add source code
|
14 |
ADD ./src .
|
15 |
+
|
16 |
+
# Ensure main.py has execute permissions
|
17 |
+
RUN chmod +x main.py
|
18 |
+
|
19 |
+
# Download NLTK data
|
20 |
RUN python -m nltk.downloader punkt
|
21 |
+
|
22 |
+
# Specify the command to run the application
|
23 |
+
CMD ["python", "./main.py"]
|