-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
30 lines (22 loc) · 1.12 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
From library/debian:latest
ENV container docker
Maintainer Carsten Seeger <[email protected]>
# install dependencys
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' >> /etc/apt/sources.list
RUN apt-get update \
&& apt-get install -y apache2 libapache2-mod-php php php-bcmath php-cli php-common php-curl php-gd php-imagick php-json php-ldap php-mbstring php-mcrypt php-memcached php-mysql php-pgsql php-soap php-xml php-zip memcached unzip sudo moreutils \
&& apt-get install -y wget dialog systemd systemd-sysv expect curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN systemctl set-default multi-user.target
ENV init /lib/systemd/systemd
RUN wget https://raw.githubusercontent.com/bheisig/i-doit-scripts/master/idoit-install -O /idoit-install \
&& chmod 755 /idoit-install \
&& wget https://login.i-doit.com/downloads/idoit-api-1.8.zip -O /idoit-api.zip
COPY ./install.sh /
COPY ./idoit-install.exp /
COPY ./create-api-key.sh /
COPY ./install.service /etc/systemd/system/
RUN systemctl enable install
VOLUME [ "sys/fs/cgroup" ]
ENTRYPOINT ["/lib/systemd/systemd"]