ar08 commited on
Commit
e41733c
·
verified ·
1 Parent(s): 48cf9aa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -23
Dockerfile CHANGED
@@ -1,23 +1,4 @@
1
- # Use the official Node.js image as a base image
2
- FROM node:18
3
-
4
- # Set the working directory inside the container
5
- WORKDIR /usr/src/app
6
-
7
- # Copy the package.json and pnpm-lock.yaml files
8
- COPY package.json pnpm-lock.yaml ./
9
-
10
- # Install pnpm globally
11
- RUN npm install -g pnpm
12
-
13
- # Install project dependencies
14
- RUN pnpm install
15
-
16
- # Copy the rest of the application code
17
- COPY . .
18
-
19
- # Expose the port on which the app will run
20
- EXPOSE 7860
21
-
22
- # Start the application and bind to 0.0.0.0 and port 7860
23
- CMD ["pnpm", "dev", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM lobehub/lobe-chat
2
+ EXPOSE 3210
3
+ ENV PORT=3210
4
+ CMD ["node", "server.js"]