Spaces:
Runtime error
Runtime error
imseldrith
commited on
Commit
•
6bda1de
1
Parent(s):
c461fcc
Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
@@ -1,23 +1,17 @@
|
|
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
|
17 |
-
RUN chmod
|
18 |
|
19 |
-
# Download NLTK data
|
20 |
RUN python -m nltk.downloader punkt
|
21 |
|
22 |
-
|
23 |
-
CMD ["python", "./main.py"]
|
|
|
1 |
FROM continuumio/miniconda3
|
2 |
|
|
|
3 |
RUN apt update && apt install espeak-ng ffmpeg -y
|
4 |
|
|
|
5 |
WORKDIR /root
|
6 |
|
|
|
7 |
ADD ./requirements.txt .
|
8 |
RUN pip install -r requirements.txt
|
9 |
|
|
|
10 |
ADD ./src .
|
11 |
|
12 |
+
# Ensure all files have appropriate permissions
|
13 |
+
RUN chmod -R 755 /root
|
14 |
|
|
|
15 |
RUN python -m nltk.downloader punkt
|
16 |
|
17 |
+
CMD ["python", "main.py"]
|
|