forked from mbentley/docker-timemachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.afp
39 lines (35 loc) · 1.73 KB
/
Dockerfile.afp
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
FROM debian:jessie
MAINTAINER Matt Bentley <[email protected]>
ENV NETATALK_VERSION 3.1.12
RUN apt-get update &&\
apt-get install -y avahi-daemon supervisor &&\
apt-get install -y --no-install-recommends build-essential curl libavahi-common-dev libavahi-client-dev libcrack2-dev libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libmysqlclient-dev libacl1-dev libldap2-dev tracker &&\
mkdir -p /tmp/netatalk-${NETATALK_VERSION} &&\
cd /tmp/netatalk-${NETATALK_VERSION} &&\
curl "http://ufpr.dl.sourceforge.net/project/netatalk/netatalk/${NETATALK_VERSION}/netatalk-${NETATALK_VERSION}.tar.gz" \
| tar zx --directory "/tmp/netatalk-${NETATALK_VERSION}" --strip-components=1 &&\
./configure \
--with-init-style=debian-sysv \
--with-cracklib \
--with-acls \
--enable-fhs \
--enable-krbV-uam \
--with-pam-confdir=/etc/pam.d \
--with-dbus-sysconf-dir=/etc/dbus-1/system.d \
--with-tracker-pkgconfig-version=0.16 &&\
make &&\
make install &&\
apt-get purge -y build-essential curl libavahi-common-dev libavahi-client-dev libcrack2-dev libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libmysqlclient-dev libacl1-dev libldap2-dev tracker &&\
apt-get install -y libavahi-client3 libcrack2 libldap-2.4-2 libmysqlclient18 libwrap0 &&\
apt-get -y autoremove &&\
rm -rf /var/lib/apt/lists/* &&\
cd &&\
mkdir /var/run/dbus &&\
rm -rf /tmp/*
COPY supervisord.afp.conf /etc/supervisord.conf
COPY entrypoint.sh healthcheck.sh /
EXPOSE 548
VOLUME ["/opt/timemachine","/var/netatalk","/var/log/supervisor"]
HEALTHCHECK --retries=3 --interval=15s --timeout=5s CMD /healthcheck.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]