bigbossmonster commited on
Commit
41398a5
·
verified ·
1 Parent(s): 89c519e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -5,19 +5,19 @@ FROM python:3.9-slim
5
  WORKDIR /app
6
 
7
  # 1. Install System Dependencies
8
- # We need 'wget' and 'make' to install unrar, or just wget to download precompiled
9
  RUN apt-get update && apt-get install -y \
10
  wget \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # 2. Install Official Unrar (Required for rarfile library to work correctly)
14
- # Downloading pre-compiled binary for Linux x64
15
- RUN wget https://www.rarlab.com/rar/rarlinux-x64-6.2.3.tar.gz && \
16
- tar -zxvf rarlinux-x64-6.2.3.tar.gz && \
17
  cp rar/unrar /usr/bin/unrar && \
18
  cp rar/rar /usr/bin/rar && \
19
  chmod 755 /usr/bin/unrar && \
20
- rm -rf rar rarlinux-x64-6.2.3.tar.gz
21
 
22
  # 3. Copy Requirements
23
  COPY requirements.txt .
 
5
  WORKDIR /app
6
 
7
  # 1. Install System Dependencies
8
+ # We need 'wget' to download unrar
9
  RUN apt-get update && apt-get install -y \
10
  wget \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # 2. Install Official Unrar (Required for rarfile library to work correctly)
14
+ # Downloading 'rarlinux-x64.tar.gz' ensures we get the latest version and avoids 404 errors on old versions
15
+ RUN wget https://www.rarlab.com/rar/rarlinux-x64-720b3.tar.gz && \
16
+ tar -zxvf rarlinux-x64.tar.gz && \
17
  cp rar/unrar /usr/bin/unrar && \
18
  cp rar/rar /usr/bin/rar && \
19
  chmod 755 /usr/bin/unrar && \
20
+ rm -rf rar rarlinux-x64-720b3.tar.gz
21
 
22
  # 3. Copy Requirements
23
  COPY requirements.txt .