huodon commited on
Commit
6d4a2c1
·
1 Parent(s): c5b4830

langgraph why?

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -12,13 +12,22 @@ COPY dist ./dist
12
 
13
  COPY package.json ./
14
  COPY langgraph.json ./
15
- COPY .gitignore /
 
 
 
16
  # Install dependencies using pnpm
17
  RUN pnpm install
18
 
19
  # Create a non-root user for security
20
  RUN groupadd -r appuser && useradd -r -g appuser appuser
 
 
21
  RUN chown -R appuser:appuser /app
 
 
 
 
22
  USER appuser
23
 
24
  # Expose the port
 
12
 
13
  COPY package.json ./
14
  COPY langgraph.json ./
15
+
16
+ # Create an empty .gitignore file
17
+ RUN touch .gitignore
18
+
19
  # Install dependencies using pnpm
20
  RUN pnpm install
21
 
22
  # Create a non-root user for security
23
  RUN groupadd -r appuser && useradd -r -g appuser appuser
24
+
25
+ # Change ownership before switching user
26
  RUN chown -R appuser:appuser /app
27
+
28
+ # Make sure .gitignore is writable
29
+ RUN chmod 664 /app/.gitignore
30
+
31
  USER appuser
32
 
33
  # Expose the port