fenduil commited on
Commit
1f925be
·
verified ·
1 Parent(s): 99fbb1d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -4,6 +4,8 @@ FROM ghcr.io/hkuds/deeptutor:latest
4
  # 2. Sécurité Hugging Face : l'image officielle tourne en "root".
5
  # Hugging Face impose un utilisateur non-privilégié (UID 1000). On ajuste les droits.
6
  USER root
 
 
7
  RUN chown -R 1000:1000 /app && chmod -R 777 /app
8
  USER 1000
9
 
@@ -14,8 +16,7 @@ ENV BACKEND_PORT=7860
14
  # L'image officielle est configurée pour lancer Supervisord (Front + Back). On désactive ce comportement.
15
  ENTRYPOINT []
16
 
17
- # Dans ton Dockerfile, juste avant le CMD :
18
- COPY model_catalog.json /app/data/user/settings/model_catalog.json
19
 
20
  # 5. On lance uniquement la configuration de DeepTutor puis le serveur FastAPI sur le port 7860
21
  CMD ["bash", "-c", "python -c \"from pathlib import Path; from deeptutor.services.setup import init_user_directories; init_user_directories(Path('/app'))\" && python -m uvicorn deeptutor.api.main:app --host 0.0.0.0 --port 7860"]
 
4
  # 2. Sécurité Hugging Face : l'image officielle tourne en "root".
5
  # Hugging Face impose un utilisateur non-privilégié (UID 1000). On ajuste les droits.
6
  USER root
7
+ # Dans ton Dockerfile, juste avant le CMD :
8
+ COPY model_catalog.json /app/data/user/settings/model_catalog.json
9
  RUN chown -R 1000:1000 /app && chmod -R 777 /app
10
  USER 1000
11
 
 
16
  # L'image officielle est configurée pour lancer Supervisord (Front + Back). On désactive ce comportement.
17
  ENTRYPOINT []
18
 
19
+
 
20
 
21
  # 5. On lance uniquement la configuration de DeepTutor puis le serveur FastAPI sur le port 7860
22
  CMD ["bash", "-c", "python -c \"from pathlib import Path; from deeptutor.services.setup import init_user_directories; init_user_directories(Path('/app'))\" && python -m uvicorn deeptutor.api.main:app --host 0.0.0.0 --port 7860"]