-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (40 loc) · 1.24 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
52
FROM debian
## General package configuration
RUN apt-get -y update && \
apt-get -y install \
sudo \
unzip \
curl \
xmlstarlet \
netcat-traditional \
software-properties-common \
debconf-utils \
uuid-runtime \
ncurses-bin \
iputils-ping \
net-tools \
jq \
zip \
python \
openssh-server \
openssh-client \
apt-transport-https \
wget \
vim \
sysstat \
xinetd
RUN echo "deb https://dl.bintray.com/rerun/rerun-deb /" >> /etc/apt/sources.list
#RUN apt-get -y install rerun-beeroclock
#SSH support
RUN mkdir /var/run/sshd
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
RUN mkdir -p /var/lib/beeroclock
COPY lib/server /var/lib/beeroclock
COPY lib/server/xinetd.d/beeroclock /etc/xinetd.d/beeroclock
RUN echo "beeroclock 28080/tcp # beer time web service" >> /etc/services
RUN touch /var/log/beeroclock.log
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 28080
CMD service xinetd start && tail -f /var/log/beeroclock.log