File size: 862 Bytes
4cb9b93
428c6c4
8252b88
51f8a09
d8078ab
b0e1786
 
 
8252b88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b0e1786
 
 
 
 
 
 
8267dd9
8252b88
8267dd9
 
44e7287
b0e1786
d8078ab
f0d71ed
b0e1786
8267dd9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM mbonea/whats-ramsey:latest

WORKDIR /usr/src/app

# Install necessary packages for Puppeteer
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
    wget ffmpeg curl aria2 \
    fonts-liberation \
    libatk-bridge2.0-0 \
    libatk1.0-0 \
    libatspi2.0-0 \
    libcups2 \
    libdrm2 \
    libgbm1 \
    libgtk-3-0 \
    libnspr4 \
    libnss3 \
    libu2f-udev \
    libvulkan1 \
    libxcomposite1 \
    libxdamage1 \
    mesa-vulkan-drivers \
    libxfixes3 \
    libasound2 \
    libxkbcommon0 \
    libxrandr2 \
    xdg-utils

RUN npm install --no-cache

RUN npm install -g http-server

# Copy the application code
COPY . /usr/src/app/

# Create directory and set permissions
RUN chmod -R 777 /usr/src/app

# Expose the port your application runs on
EXPOSE 7860

# Define the command to run the start script
CMD ["npm", "start"]