File size: 470 Bytes
f49d38b
 
 
94c9dff
 
 
 
 
 
 
f49d38b
 
 
 
 
 
 
 
94c9dff
f49d38b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use official Python base image
FROM python:3.10

# Install unrar and other dependencies
RUN apt-get update && \
    apt-get install -y unrar-free && \
    apt-get clean

# Set environment variable for rarfile
ENV UNRAR_TOOL=unrar

# Set working directory
WORKDIR /code

# Copy requirements and install
COPY requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy app code
COPY . /code

# Run the app
CMD ["python", "app.py"]