getzero11 commited on
Commit
a0f823c
·
verified ·
1 Parent(s): ee469f2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,21 +1,23 @@
1
- FROM node:18-slim
2
 
3
- # Install git (optional but helpful)
4
  RUN apt-get update && \
5
  apt-get install -y git && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
9
 
10
- # Copy and install Moltbot + dependencies
11
  COPY package.json ./
 
 
12
  RUN npm install
13
 
14
- # Copy application files
15
  COPY . .
16
 
17
- # Expose HF Space port
18
  EXPOSE 7860
19
 
20
- # Start the HTTP wrapper
21
  CMD ["npm", "start"]
 
1
+ FROM node:20-slim
2
 
3
+ # Install git (needed for some deps)
4
  RUN apt-get update && \
5
  apt-get install -y git && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
9
 
10
+ # Copy package.json first for layer caching
11
  COPY package.json ./
12
+
13
+ # Install dependencies
14
  RUN npm install
15
 
16
+ # Copy the rest of the app
17
  COPY . .
18
 
19
+ # Hugging Face Spaces port
20
  EXPOSE 7860
21
 
22
+ # Start server
23
  CMD ["npm", "start"]