drewThomasson commited on
Commit
7989fea
·
verified ·
1 Parent(s): da551e8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 from packages.txt
15
- COPY --chown=user ./packages.txt packages.txt
16
  USER root
17
- RUN apt-get update && xargs -a packages.txt apt-get install -y && apt-get clean && rm -rf /var/lib/apt/lists/*
18
- USER user
 
 
 
19
 
20
- # Install Python dependencies
21
- COPY --chown=user ./requirements.txt requirements.txt
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