Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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'
|
| 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
|
| 15 |
-
RUN wget https://www.rarlab.com/rar/rarlinux-x64-
|
| 16 |
-
tar -zxvf rarlinux-x64
|
| 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-
|
| 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 .
|