-
Notifications
You must be signed in to change notification settings - Fork 75
/
Dockerfile
63 lines (58 loc) · 2.33 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
53
54
55
56
57
58
59
60
61
62
63
FROM debian:jessie
ENV NETATALK_VERSION 3.1.11
ENV DEPS="build-essential libevent-dev libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libtdb-dev libmysqlclient-dev libavahi-client-dev libacl1-dev libldap2-dev libcrack2-dev systemtap-sdt-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libtracker-sparql-1.0-dev libtracker-miner-1.0-dev file"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install \
--no-install-recommends \
--fix-missing \
--assume-yes \
$DEPS \
tracker \
avahi-daemon \
curl wget \
&& wget "http://ufpr.dl.sourceforge.net/project/netatalk/netatalk/${NETATALK_VERSION}/netatalk-${NETATALK_VERSION}.tar.gz" \
&& curl -SL "http://ufpr.dl.sourceforge.net/project/netatalk/netatalk/${NETATALK_VERSION}/netatalk-${NETATALK_VERSION}.tar.gz" | tar xvz
WORKDIR netatalk-${NETATALK_VERSION}
RUN ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--with-init-style=debian-systemd \
--without-libevent \
--without-tdb \
--with-cracklib \
--enable-krbV-uam \
--with-pam-confdir=/etc/pam.d \
--with-dbus-sysconf-dir=/etc/dbus-1/system.d \
--with-tracker-pkgconfig-version=1.0 \
&& make \
&& make install \
&& apt-get --quiet --yes purge --auto-remove \
$DEPS \
tracker-gui \
libgl1-mesa-dri \
&& DEBIAN_FRONTEND=noninteractive apt-get install --yes \
libevent-2.0 \
libavahi-client3 \
libevent-core-2.0 \
libwrap0 \
libtdb1 \
libmysqlclient18 \
libcrack2 \
libdbus-glib-1-2 \
&& apt-get --quiet --yes autoclean \
&& apt-get --quiet --yes autoremove \
&& apt-get --quiet --yes clean \
&& rm -rf /netatalk* \
&& rm -rf /usr/share/man \
&& rm -rf /usr/share/doc \
&& rm -rf /usr/share/icons \
&& rm -rf /usr/share/poppler \
&& rm -rf /usr/share/mime \
&& rm -rf /usr/share/GeoIP \
&& rm -rf /var/lib/apt/lists* \
&& mkdir /media/share
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY afp.conf /etc/afp.conf
ENV DEBIAN_FRONTEND=newt
CMD ["/docker-entrypoint.sh"]