forked from smdion/docker-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-Template
40 lines (31 loc) · 888 Bytes
/
Dockerfile-Template
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
38
39
40
FROM phusion/baseimage:0.9.15
MAINTAINER smdion <[email protected]>
# Set correct environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Use baseimage-docker's init system
CMD ["/sbin/my_init"]
# Configure user nobody to match unRAID's settings
RUN \
usermod -u 99 nobody && \
usermod -g 100 nobody && \
usermod -d /home nobody && \
chown -R nobody:users /home
# Disable SSH
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
# Install PROGRAM
RUN \
#Expose Volumes
VOLUME /config
#Expose Ports
EXPOSE 80
# Add firstrun.sh to execute during container startup
ADD firstrun.sh /etc/my_init.d/firstrun.sh
RUN chmod +x /etc/my_init.d/firstrun.sh
# Add PROGRAM to runit
RUN mkdir /etc/service/PROGRAM
ADD PROGRAM.sh /etc/service/PROGRAM/run
RUN chmod +x /etc/service/PROGRAM/run