Spaces:
Sleeping
Sleeping
oceansweep
commited on
Commit
•
b7f88eb
1
Parent(s):
324f72a
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
@@ -31,7 +31,11 @@ COPY . /app
|
|
31 |
|
32 |
# Create necessary directories and set permissions
|
33 |
RUN mkdir -p /app/Results/Audio_Processing /app/Results/Video_Downloads && \
|
34 |
-
chown -R user:user /app
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# Switch to the "user" user
|
37 |
USER user
|
@@ -48,5 +52,11 @@ ENV PYTHONUNBUFFERED=1 \
|
|
48 |
TRANSFORMERS_CACHE=/dev/shm \
|
49 |
GRADIO_ANALYTICS_ENABLED=False
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
# Command to run the application
|
52 |
CMD ["python3", "app.py"]
|
|
|
31 |
|
32 |
# Create necessary directories and set permissions
|
33 |
RUN mkdir -p /app/Results/Audio_Processing /app/Results/Video_Downloads && \
|
34 |
+
chown -R user:user /app/*
|
35 |
+
|
36 |
+
RUN chown -R user:user /app && \
|
37 |
+
chmod -R 755 /app && \
|
38 |
+
chmod -R 777 /app/database # Ensure this directory exists
|
39 |
|
40 |
# Switch to the "user" user
|
41 |
USER user
|
|
|
52 |
TRANSFORMERS_CACHE=/dev/shm \
|
53 |
GRADIO_ANALYTICS_ENABLED=False
|
54 |
|
55 |
+
RUN whoami && \
|
56 |
+
echo "Permissions for /app:" && \
|
57 |
+
ls -la /app && \
|
58 |
+
echo "Permissions for /:" && \
|
59 |
+
ls -la /
|
60 |
+
|
61 |
# Command to run the application
|
62 |
CMD ["python3", "app.py"]
|