File size: 736 Bytes
5ec8eb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM python:3.9.5-buster

# Install dependencies
RUN apt-get update && \
    apt-get install --no-install-recommends -y \
    python3-dev \
    python3-pip \
    python3-virtualenv \
    git \
    mediainfo \
    nano \
    ffmpeg \
    unzip && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# Copy requirements and install them
COPY ./reqs.txt /Hellbot/reqs.txt
RUN pip3 install --no-cache-dir -U -r /Hellbot/reqs.txt 

# Set working directory
WORKDIR /Hellbot

# Copy the application code
COPY . .

# Set appropriate permissions
RUN chown -R 1000:0 /Hellbot && \
    chmod -R 755 /Hellbot && \
    chmod +x /Hellbot/start.sh

# Expose port
EXPOSE 7860

# Start the application using the start.sh script
CMD ["./start.sh"]