Charan5775 commited on
Commit
5269b08
·
verified ·
1 Parent(s): ae4067e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -7
Dockerfile CHANGED
@@ -1,19 +1,32 @@
1
- FROM node:18
 
2
 
 
3
  WORKDIR /app
4
 
5
- RUN apt-get update && apt-get install -y libc++1 libc++abi1
 
6
 
7
- RUN git clone https://github.com/coleam00/bolt.new-any-llm.git /app
 
8
 
9
- RUN npm install -g pnpm
 
 
 
 
10
 
11
- RUN pnpm install
 
12
 
13
- ENV MINIFLARE_NO_RUNTIME_CHECK=true
 
14
 
 
15
  RUN pnpm build
16
 
17
- EXPOSE 5173
 
18
 
 
19
  CMD ["pnpm", "start"]
 
1
+ # Use a Node.js base image
2
+ FROM node:18-slim
3
 
4
+ # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Install pnpm globally
8
+ RUN npm install -g pnpm
9
 
10
+ # Copy package.json and lock file
11
+ COPY package.json pnpm-lock.yaml ./
12
 
13
+ # Install dependencies using pnpm
14
+ RUN pnpm install --frozen-lockfile
15
+
16
+ # Copy the rest of the application files
17
+ COPY . .
18
 
19
+ # Enable Remix future flags in case React Router v7 features are used
20
+ ENV REMIX_FUTURE_FLAGS="v3_lazyRouteDiscovery,v3_singleFetch"
21
 
22
+ # Set environment variables to support Miniflare if needed
23
+ ENV MINIFLARE_WORKERS="true"
24
 
25
+ # Build the application
26
  RUN pnpm build
27
 
28
+ # Expose the application's default port (adjust if necessary)
29
+ EXPOSE 3000
30
 
31
+ # Set the start command
32
  CMD ["pnpm", "start"]