Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Update 2026.05.25
|
| 2 |
+
FROM localai/localai:master-1779696300-90ea327
|
| 3 |
+
|
| 4 |
+
# Installer Nginx
|
| 5 |
+
RUN apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
|
| 7 |
+
# Préparer les répertoires LocalAI
|
| 8 |
+
RUN mkdir -p /configuration && \
|
| 9 |
+
chmod -R 777 /models /backends /configuration /data && \
|
| 10 |
+
chmod +x /local-ai
|
| 11 |
+
|
| 12 |
+
# Copier config Nginx
|
| 13 |
+
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
| 14 |
+
|
| 15 |
+
# Copier script de démarrage
|
| 16 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 17 |
+
RUN chmod +x /entrypoint.sh
|
| 18 |
+
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
|
| 21 |
+
CMD ["/entrypoint.sh"]
|