Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -9
Dockerfile
CHANGED
|
@@ -1,24 +1,18 @@
|
|
| 1 |
FROM hexdolemonai/lemon:latest
|
| 2 |
-
|
| 3 |
-
# Set user to root for installation
|
| 4 |
USER root
|
| 5 |
|
| 6 |
-
#
|
| 7 |
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
-
#
|
| 10 |
RUN mkdir -p /workspace-data /workspace-data/database /workspace-data/cache \
|
| 11 |
&& chmod -R 777 /workspace-data
|
| 12 |
|
| 13 |
-
#
|
| 14 |
ENV LEMON_AI_PATH=/workspace-data
|
| 15 |
ENV ACTUAL_HOST_WORKSPACE_PATH=/workspace-data
|
| 16 |
|
| 17 |
-
# Keep working directory at /app (contains Makefile and code)
|
| 18 |
WORKDIR /app
|
| 19 |
-
|
| 20 |
-
# Expose port
|
| 21 |
EXPOSE 5005
|
| 22 |
|
| 23 |
-
# Start LemonAI
|
| 24 |
CMD ["make", "start"]
|
|
|
|
| 1 |
FROM hexdolemonai/lemon:latest
|
|
|
|
|
|
|
| 2 |
USER root
|
| 3 |
|
| 4 |
+
# Installer curl si nécessaire (Debian/Ubuntu)
|
| 5 |
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
+
# Créer dossiers writable
|
| 8 |
RUN mkdir -p /workspace-data /workspace-data/database /workspace-data/cache \
|
| 9 |
&& chmod -R 777 /workspace-data
|
| 10 |
|
| 11 |
+
# Variables d'environnement
|
| 12 |
ENV LEMON_AI_PATH=/workspace-data
|
| 13 |
ENV ACTUAL_HOST_WORKSPACE_PATH=/workspace-data
|
| 14 |
|
|
|
|
| 15 |
WORKDIR /app
|
|
|
|
|
|
|
| 16 |
EXPOSE 5005
|
| 17 |
|
|
|
|
| 18 |
CMD ["make", "start"]
|