File size: 774 Bytes
a40c44c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 node:16-slim

# Define build argument for branch
ARG BRANCH=main

# Install git, Python and pip
RUN apt-get update && \
    apt-get install -y git python3 python3-pip && \
    pip3 install requests && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Clone the repository and checkout specified branch
RUN git clone https://github.com/mccoy88f/OMG-Premium-TV.git . && \
    git checkout ${BRANCH}

# Install dependencies
RUN npm install

# Create directories for Python scripts and generated playlists
RUN mkdir -p /app/temp && \
    chmod 777 /app/temp
RUN chmod 777 /app



# Expose the port (Hugging Face uses 7860)
EXPOSE 7860

# Set essential environment variables for Hugging Face
ENV PORT=7860
ENV HOST=0.0.0.0

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