Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -39,7 +39,13 @@ RUN mkdir data/Healthy
|
|
| 39 |
RUN mkdir data/Blight
|
| 40 |
RUN mkdir data/Common_Rust
|
| 41 |
RUN mkdir data/Gray_Leaf_Spot
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
# Expose the port the app runs on
|
| 44 |
EXPOSE 7860
|
| 45 |
|
|
|
|
| 39 |
RUN mkdir data/Blight
|
| 40 |
RUN mkdir data/Common_Rust
|
| 41 |
RUN mkdir data/Gray_Leaf_Spot
|
| 42 |
+
|
| 43 |
+
# Créez le répertoire et donnez toutes les permissions
|
| 44 |
+
RUN mkdir temp && chmod -R 777 temp
|
| 45 |
+
|
| 46 |
+
# Optionnel : Changez l'utilisateur en root pour garantir l'accès
|
| 47 |
+
USER root
|
| 48 |
+
|
| 49 |
# Expose the port the app runs on
|
| 50 |
EXPOSE 7860
|
| 51 |
|