ManasseMbemba commited on
Commit
c62dc41
·
verified ·
1 Parent(s): 699b460

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -2
Dockerfile CHANGED
@@ -1,9 +1,24 @@
1
  FROM hexdolemonai/lemon:latest
 
 
2
  USER root
3
- RUN apk add --no-cache bash curl
4
- RUN mkdir -p /workspace-data /workspace-data/database /workspace-data/cache && chmod -R 777 /workspace-data
 
 
 
 
 
 
 
5
  ENV LEMON_AI_PATH=/workspace-data
6
  ENV ACTUAL_HOST_WORKSPACE_PATH=/workspace-data
 
 
7
  WORKDIR /app
 
 
8
  EXPOSE 5005
 
 
9
  CMD ["make", "start"]
 
1
  FROM hexdolemonai/lemon:latest
2
+
3
+ # Set user to root for installation
4
  USER root
5
+
6
+ # Optional: installer curl si vraiment nécessaire (Debian/Ubuntu)
7
+ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Create writable directories
10
+ RUN mkdir -p /workspace-data /workspace-data/database /workspace-data/cache \
11
+ && chmod -R 777 /workspace-data
12
+
13
+ # Set environment variables
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"]