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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,23 +1,21 @@
1
  FROM node:18-slim
2
 
3
- # Install git (required for npm git dependencies)
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 dependency definition
11
  COPY package.json ./
12
-
13
- # Install dependencies (this now works)
14
  RUN npm install
15
 
16
- # Copy app source
17
  COPY . .
18
 
19
- # HF Spaces port
20
  EXPOSE 7860
21
 
22
- # Start server
23
  CMD ["npm", "start"]
 
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"]