Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +11 -7
Dockerfile
CHANGED
@@ -11,15 +11,16 @@ ENV PATH="/home/user/.local/bin:$PATH"
|
|
11 |
# Set a working directory for temporary operations
|
12 |
WORKDIR /app
|
13 |
|
14 |
-
# Install system packages
|
15 |
-
COPY --chown=user ./packages.txt packages.txt
|
16 |
USER root
|
17 |
-
RUN apt-get update &&
|
18 |
-
|
|
|
|
|
|
|
19 |
|
20 |
-
# Install Python dependencies
|
21 |
-
|
22 |
-
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
23 |
|
24 |
# Clone the GitHub repository and set it as the working directory
|
25 |
USER root
|
@@ -30,6 +31,9 @@ RUN git clone https://github.com/DrewThomasson/ebook2audiobook.git /home/user/eb
|
|
30 |
# Set the cloned repository as the base working directory
|
31 |
WORKDIR /home/user/ebook2audiobook
|
32 |
|
|
|
|
|
|
|
33 |
# Expose the required port
|
34 |
EXPOSE 7860
|
35 |
|
|
|
11 |
# Set a working directory for temporary operations
|
12 |
WORKDIR /app
|
13 |
|
14 |
+
# Install system packages
|
|
|
15 |
USER root
|
16 |
+
RUN apt-get update && \
|
17 |
+
apt-get install -y wget git calibre ffmpeg libmecab-dev mecab mecab-ipadic && \
|
18 |
+
apt-get clean && \
|
19 |
+
rm -rf /var/lib/apt/lists/*
|
20 |
+
#USER user
|
21 |
|
22 |
+
# Install pre-Python dependencies
|
23 |
+
#RUN pip install m4b-util
|
|
|
24 |
|
25 |
# Clone the GitHub repository and set it as the working directory
|
26 |
USER root
|
|
|
31 |
# Set the cloned repository as the base working directory
|
32 |
WORKDIR /home/user/ebook2audiobook
|
33 |
|
34 |
+
#Install Python dependences from the ebook2audiobook repo
|
35 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
36 |
+
|
37 |
# Expose the required port
|
38 |
EXPOSE 7860
|
39 |
|