drewThomasson commited on
Commit
6db91f9
·
verified ·
1 Parent(s): 330e3e3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -18,11 +18,11 @@ RUN apt-get update && apt-get install -y \
18
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
19
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
20
 
21
- # Install pip and setuptools manually
22
  RUN wget https://bootstrap.pypa.io/get-pip.py && \
23
  python get-pip.py && \
24
  rm get-pip.py && \
25
- pip install --no-cache-dir --upgrade setuptools wheel
26
 
27
  # Create and switch to a non-root user
28
  RUN useradd -m -u 1000 user
@@ -35,8 +35,9 @@ WORKDIR /home/user/app
35
  # Clone the GitHub repository
36
  RUN git clone https://github.com/DrewThomasson/ebook2audiobook.git /home/user/app
37
 
38
- # Install Python dependencies
39
- RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
 
40
 
41
  # Expose the application port
42
  EXPOSE 7860
 
18
  RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
19
  update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
20
 
21
+ # Install pip, setuptools, and wheel manually
22
  RUN wget https://bootstrap.pypa.io/get-pip.py && \
23
  python get-pip.py && \
24
  rm get-pip.py && \
25
+ pip install --no-cache-dir --upgrade pip setuptools wheel
26
 
27
  # Create and switch to a non-root user
28
  RUN useradd -m -u 1000 user
 
35
  # Clone the GitHub repository
36
  RUN git clone https://github.com/DrewThomasson/ebook2audiobook.git /home/user/app
37
 
38
+ # Install Python dependencies with isolated builds
39
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
40
+ pip install --no-cache-dir --use-pep517 -r requirements.txt
41
 
42
  # Expose the application port
43
  EXPOSE 7860