Files
projects/Dockers/iptv-epg/Dockerfile
T
Bram 019e1054b9
Build and Push Docker Images / build-and-push (push) Successful in 1m49s
update with new version
2026-05-17 15:08:09 +02:00

35 lines
728 B
Docker

FROM node:20-alpine
# Install required packages
RUN apk add --no-cache git curl unzip coreutils
# Set working directory
WORKDIR /app
# Clone the latest EPG repository code
RUN git clone --depth 1 -b master https://github.com/iptv-org/epg.git . && \
npm install && \
npm install pm2 serve -g
# Create guides directory
RUN mkdir -p /app/guides
# Copy entrypoint script
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Expose port for serving the guide
EXPOSE 3000
# Set environment variables with defaults
ENV CRON_SCHEDULE="0 0,12 * * *" \
SITES="" \
MAX_CONNECTIONS=10 \
DAYS="" \
DELAY=0 \
LANG="" \
GZIP="false"
# Set entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]