File size: 658 Bytes
b355979
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3c79213
b355979
 
 
 
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
FROM node:lts-buster

# Install dependencies
RUN apt-get update && \
    apt-get install -y ffmpeg webp git && \
    apt-get upgrade -y && \
    rm -rf /var/lib/apt/lists/*

# Create necessary directories with proper permissions
RUN mkdir -p /tmp/knightbot && \
    chmod -R 777 /tmp/knightbot

# Clone the repository
RUN git clone https://github.com/vaibhavk10/Knightbot /app
WORKDIR /app

# Install dependencies
RUN yarn install --network-concurrency 1

# Set permissions for app directory
RUN chmod -R 777 /app

# Expose port for Hugging Face
EXPOSE 7860

# Set production environment ok s
ENV NODE_ENV=production

# Start the bot
CMD ["node", "index.js"]