Spaces:
Sleeping
Sleeping
| # Update 206.05.25 | |
| FROM localai/localai:master-1779696300-90ea327 | |
| # Installer Nginx | |
| RUN apt-get update && apt-get install -y nginx netcat-openbsd && rm -rf /var/lib/apt/lists/* | |
| # Préparer les répertoires LocalAI | |
| RUN mkdir -p /configuration && \ | |
| chmod -R 777 /models /backends /configuration /data && \ | |
| chmod +x /local-ai | |
| # Copier config Nginx | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| # Copier script de démarrage HFSpace | |
| #COPY HFSpace_Entrypoint.sh /HFSpace_Entrypoint.sh | |
| #RUN chmod +x /HFSpace_Entrypoint.sh | |
| COPY entrypoint.sh /entrypoint.sh | |
| RUN chmod +x /entrypoint.sh | |
| EXPOSE 7860 | |
| CMD ["/entrypoint.sh"] | |
| #Modify Entrypoint06 |