2023-08-23 02:10:41 +02:00

30 lines
722 B
Docker

# Use an official Node.js runtime as the base image
FROM node:14
# Set the working directory inside the container
WORKDIR /app
# Clone the repository
RUN git clone --depth 1 -b master https://github.com/iptv-org/epg.git
# Change the working directory to the cloned repository
WORKDIR /app/epg
# Install necessary dependencies
RUN npm install
# Set the default environment variable for the selected source
ENV SITE="meo.pt"
ENV I="12h"
# Expose the port the application will run on
EXPOSE 3000
# Copy the custom shell script to the container
COPY run.sh /app/run.sh
# Make the shell script executable
RUN chmod +x /app/run.sh
# Command to start both downloading the guide and running the server
CMD ["/app/run.sh"]