Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -81,7 +81,13 @@ WORKDIR /workspaces/artificial_intelligence
|
|
| 81 |
|
| 82 |
COPY . .
|
| 83 |
|
|
|
|
|
|
|
|
|
|
| 84 |
# Set permissions for the directory
|
| 85 |
RUN chmod -R 777 /workspaces/artificial_intelligence
|
| 86 |
|
|
|
|
|
|
|
|
|
|
| 87 |
RUN python main.py
|
|
|
|
| 81 |
|
| 82 |
COPY . .
|
| 83 |
|
| 84 |
+
# Switch to root user to change permissions
|
| 85 |
+
USER root
|
| 86 |
+
|
| 87 |
# Set permissions for the directory
|
| 88 |
RUN chmod -R 777 /workspaces/artificial_intelligence
|
| 89 |
|
| 90 |
+
# Switch back to a non-root user
|
| 91 |
+
USER vscode
|
| 92 |
+
|
| 93 |
RUN python main.py
|