Arkm20 commited on
Commit
79202df
·
verified ·
1 Parent(s): c343361

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -1,12 +1,18 @@
1
  FROM node:18-slim
2
- WORKDIR /app
3
 
4
- # Install dependencies
5
- COPY package*.json ./
6
- RUN npm ci --production
 
 
 
 
7
 
8
- # Copy bot code
9
  COPY . .
10
 
11
- # Launch the keep-alive loop
 
 
 
12
  CMD ["node", "index.js"]
 
1
  FROM node:18-slim
 
2
 
3
+ # Install Playwright dependencies
4
+ RUN apt-get update && apt-get install -y wget ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libcups2 libdbus-1-3 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libnss3 libx11-xcb1 libxcomposite1 libxdamage1 libxrandr2 xdg-utils
5
+
6
+ # Install node modules
7
+ WORKDIR /app
8
+ COPY package.json package-lock.json ./
9
+ RUN npm ci
10
 
11
+ # Copy app code
12
  COPY . .
13
 
14
+ # Expose port (even though we don't need it — HF requires it)
15
+ EXPOSE 7860
16
+
17
+ # Start script
18
  CMD ["node", "index.js"]