Charan5775 commited on
Commit
e17844b
·
verified ·
1 Parent(s): 808844b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -3,13 +3,19 @@ FROM ${BASE} AS base
3
 
4
  WORKDIR /app
5
 
6
- # Install dependencies (this step is cached as long as the dependencies don't change)
7
  COPY package.json pnpm-lock.yaml./
8
 
9
- RUN corepack enable pnpm && pnpm install
 
10
 
11
- # Copy the rest of your app's source code
12
- COPY . .
 
 
 
 
 
13
 
14
  # Change ownership to node user
15
  RUN chown -R node:node /app
@@ -20,7 +26,7 @@ EXPOSE 5173
20
  # Development image
21
  FROM base AS bolt-ai-development
22
 
23
- # Define the same environment variables for development
24
  ARG GROQ_API_KEY
25
  ARG HuggingFace
26
  ARG OPENAI_API_KEY
 
3
 
4
  WORKDIR /app
5
 
6
+ # Copy package.json and pnpm-lock.yaml
7
  COPY package.json pnpm-lock.yaml./
8
 
9
+ # List files in /app to debug
10
+ RUN ls -la
11
 
12
+ # Install pnpm using corepack and prepare it
13
+ RUN corepack enable pnpm \
14
+ && corepack prepare pnpm@latest --activate \
15
+ && pnpm install
16
+
17
+ # Copy the rest of the application source code
18
+ COPY . .
19
 
20
  # Change ownership to node user
21
  RUN chown -R node:node /app
 
26
  # Development image
27
  FROM base AS bolt-ai-development
28
 
29
+ # Define environment variables for development
30
  ARG GROQ_API_KEY
31
  ARG HuggingFace
32
  ARG OPENAI_API_KEY