Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
# Use official Python base image
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Install unrar
|
| 5 |
-
RUN apt-get update &&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
| 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
|