SohomToom commited on
Commit
94c9dff
·
verified ·
1 Parent(s): f49d38b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,8 +1,13 @@
1
  # Use official Python base image
2
  FROM python:3.10
3
 
4
- # Install unrar for extracting .cbr files
5
- RUN apt-get update && apt-get install -y unrar
 
 
 
 
 
6
 
7
  # Set working directory
8
  WORKDIR /code
@@ -11,7 +16,7 @@ WORKDIR /code
11
  COPY requirements.txt /code/requirements.txt
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Copy the rest of the code
15
  COPY . /code
16
 
17
  # Run the app
 
1
  # Use official Python base image
2
  FROM python:3.10
3
 
4
+ # Install unrar and other dependencies
5
+ RUN apt-get update && \
6
+ apt-get install -y unrar-free && \
7
+ apt-get clean
8
+
9
+ # Set environment variable for rarfile
10
+ ENV UNRAR_TOOL=unrar
11
 
12
  # Set working directory
13
  WORKDIR /code
 
16
  COPY requirements.txt /code/requirements.txt
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Copy app code
20
  COPY . /code
21
 
22
  # Run the app