-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 706 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 706 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
27
28
29
30
FROM phusion/baseimage:0.9.16
ENV DEBIAN_FRONTEND noninteractive
# Configure user nobody to match unRAID's settings
RUN usermod -u 99 nobody
RUN usermod -g 100 nobody
RUN usermod -d /home nobody
RUN chown -R nobody:users /home
# Install Dependencies
RUN apt-get update -q
RUN apt-get install -qy mariadb-client
# Create docker folders
RUN mkdir /config
RUN mkdir /backup
VOLUME /backup
# Add our crontab file
ADD crontab.txt /config/crontab.txt
ADD cronjob /config/cronjob
# Make cronjob executable
RUN chmod +x /config/cronjob
# Add firstrun.sh to execute during container startup, changes mysql host settings.
ADD firstrun.sh /etc/my_init.d/firstrun.sh
RUN chmod +x /etc/my_init.d/firstrun.sh