-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 713 Bytes
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
FROM ubuntu
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y bash
RUN apt-get install -y xmltv-util
RUN apt-get install -y nginx
# Install cron in addition to your other packages
RUN apt-get update && apt-get install -y cron
# Set default values
ENV SD_FETCH_DAYS 2
# Create log file for cron
RUN touch /var/log/cron.log && chmod 0666 /var/log/cron.log
# Set up cron to refresh from schedules direct
COPY tvgrab-cron /etc/cron.d/tvgrab-cron
RUN chmod 0644 /etc/cron.d/tvgrab-cron
# Create an entrypoint script to generate the config with the password
COPY start.sh /start.sh
COPY fetch_json.sh /fetch_json.sh
RUN chmod +x /start.sh /fetch_json.sh
# Set the entrypoint
ENTRYPOINT ["/start.sh"]