File size: 876 Bytes
fd92ae4
 
 
 
 
 
 
 
 
 
8a93806
fd92ae4
8a93806
fd92ae4
 
624938d
 
8a93806
e0d80ad
 
fd92ae4
 
e0d80ad
fd92ae4
 
 
 
 
 
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
# Use Node.js 20 Alpine as the base image for a lightweight container
FROM node:20-alpine


# Install git (required for cloning the repository) and clean npm cache
RUN apk add --no-cache git && \
    npm cache clean --force && \
    npm install -g [email protected]

# Clone the repository directly into the working directory
RUN git clone https://github.com/testingol/ckptw-wabot/ /home/node/tav

WORKDIR /home/node/tav
# Create necessary directories and set permissions

COPY package*.json ./

RUN chmod -R 777 /home/node/tav/

RUN yarn install && yarn add @mengkodingan/ckptw
# Copy any local custom files (if applicable, e.g., your bot code)
# Uncomment this line if you have local modifications to include
COPY . .

# Expose any necessary ports (optional, adjust if your bot uses a specific port)
# EXPOSE 3000

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