Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -15,11 +15,11 @@ RUN pip install -r requirements.txt
|
|
15 |
# Copy the application files
|
16 |
COPY . .
|
17 |
|
18 |
-
#
|
19 |
-
RUN chmod 644
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
# Switch to non-root user
|
25 |
USER appuser
|
|
|
15 |
# Copy the application files
|
16 |
COPY . .
|
17 |
|
18 |
+
# Set permissions for all files and directories
|
19 |
+
RUN find /app -type f -exec chmod 644 {} \; && \
|
20 |
+
find /app -type d -exec chmod 755 {} \; && \
|
21 |
+
chmod 644 www.youtube.com_cookies.txt && \
|
22 |
+
chown -R appuser:appuser /app
|
23 |
|
24 |
# Switch to non-root user
|
25 |
USER appuser
|