Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -16,8 +16,9 @@ ENV TRANSFORMERS_NO_FAST=1
|
|
| 16 |
# Set the working directory in the container
|
| 17 |
WORKDIR /app
|
| 18 |
|
| 19 |
-
# Install system dependencies
|
| 20 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 21 |
ffmpeg \
|
| 22 |
libsm6 \
|
| 23 |
libxext6 \
|
|
@@ -38,7 +39,7 @@ RUN mkdir -p /app/static /app/temp && chmod -R 777 /app/static /app/temp
|
|
| 38 |
# Copy the rest of your application code into the container
|
| 39 |
COPY . /app
|
| 40 |
|
| 41 |
-
# Set permissions for the entire /app directory (
|
| 42 |
RUN chmod -R 777 /app
|
| 43 |
|
| 44 |
# Set a default port; Hugging Face Spaces sets PORT automatically
|
|
|
|
| 16 |
# Set the working directory in the container
|
| 17 |
WORKDIR /app
|
| 18 |
|
| 19 |
+
# Install system dependencies including build-essential for gcc
|
| 20 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 21 |
+
build-essential \
|
| 22 |
ffmpeg \
|
| 23 |
libsm6 \
|
| 24 |
libxext6 \
|
|
|
|
| 39 |
# Copy the rest of your application code into the container
|
| 40 |
COPY . /app
|
| 41 |
|
| 42 |
+
# Set permissions for the entire /app directory (adjust for security if needed)
|
| 43 |
RUN chmod -R 777 /app
|
| 44 |
|
| 45 |
# Set a default port; Hugging Face Spaces sets PORT automatically
|