Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -7,10 +7,10 @@ ENV HF_HOME=/app/hf_cache
|
|
7 |
ENV TRANSFORMERS_CACHE=/app/hf_cache
|
8 |
ENV HF_TOKEN=${HF_TOKEN}
|
9 |
ENV PATH=/opt/conda/bin:$PATH
|
|
|
10 |
# Install system dependencies
|
11 |
-
RUN apt
|
12 |
-
|
13 |
-
apt-get clean
|
14 |
|
15 |
# Set up working directory as /app
|
16 |
WORKDIR /app
|
@@ -19,16 +19,14 @@ WORKDIR /app
|
|
19 |
COPY . /app
|
20 |
|
21 |
# Fix permissions for all subdirectories
|
22 |
-
RUN mkdir -p /app/
|
23 |
chmod -R 777 /app && \
|
24 |
chmod -R 777 /.cache && \
|
25 |
chmod -R 777 /root
|
26 |
|
27 |
# Create conda environment and install dependencies
|
28 |
COPY requirements.txt /app/requirements.txt
|
29 |
-
RUN
|
30 |
-
conda run -n epic pip install --upgrade pip && \
|
31 |
-
conda run -n epic pip install -r /app/requirements.txt
|
32 |
|
33 |
RUN chmod -R 777 /app /workspace
|
34 |
|
|
|
7 |
ENV TRANSFORMERS_CACHE=/app/hf_cache
|
8 |
ENV HF_TOKEN=${HF_TOKEN}
|
9 |
ENV PATH=/opt/conda/bin:$PATH
|
10 |
+
|
11 |
# Install system dependencies
|
12 |
+
RUN apt install libgl1-mesa-glx libgl1-mesa-dri xvfb
|
13 |
+
RUN conda install ffmpeg=7 -c conda-forge
|
|
|
14 |
|
15 |
# Set up working directory as /app
|
16 |
WORKDIR /app
|
|
|
19 |
COPY . /app
|
20 |
|
21 |
# Fix permissions for all subdirectories
|
22 |
+
RUN mkdir -p /app/hf_cache /.cache/gdown && \
|
23 |
chmod -R 777 /app && \
|
24 |
chmod -R 777 /.cache && \
|
25 |
chmod -R 777 /root
|
26 |
|
27 |
# Create conda environment and install dependencies
|
28 |
COPY requirements.txt /app/requirements.txt
|
29 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
30 |
|
31 |
RUN chmod -R 777 /app /workspace
|
32 |
|