Yakova commited on
Commit
d8078ab
·
verified ·
1 Parent(s): 9646747

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +38 -3
Dockerfile CHANGED
@@ -1,11 +1,46 @@
1
  FROM mbonea/whats-ramsey:0.0.2
2
 
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- # Expose the port your application runs on
6
- EXPOSE 7860
7
 
8
 
 
 
 
 
 
 
 
 
 
9
 
10
  # Define the command to run the start script
11
- CMD ["./start.sh"]
 
 
1
  FROM mbonea/whats-ramsey:0.0.2
2
 
3
 
4
+ RUN npm install --no-cache
5
+
6
+
7
+
8
+ # Install necessary packages for Puppeteer
9
+ RUN apt-get update \
10
+ && apt-get install -y wget --no-install-recommends \
11
+ && apt-get install -y \
12
+ libnss3 \
13
+ libatk-bridge2.0-0 \
14
+ libxcomposite1 \
15
+ libxrandr2 \
16
+ libxdamage1 \
17
+ libpango-1.0-0 \
18
+ libxshmfence1 \
19
+ libgbm1 \
20
+ libasound2 \
21
+ libpangocairo-1.0-0 \
22
+ libgtk-3-0 \
23
+ libx11-xcb1 \
24
+ libx11-xcb1 \
25
+ libxkbcommon0 \
26
+ && rm -rf /var/lib/apt/lists/*
27
+
28
+ RUN npx playwright install
29
+ # If your application requires any environment variables, set them here
30
+ # ENV NODE_ENV=production
31
 
 
 
32
 
33
 
34
+ RUN npm install -g http-server
35
+
36
+
37
+ COPY . .
38
+ # Ensure the start script has execute permissions
39
+ RUN chmod +x start.sh
40
+
41
+ # Expose the port your application runs on
42
+ EXPOSE 7860
43
 
44
  # Define the command to run the start script
45
+ CMD ["./start.sh"]
46
+