forked from cptactionhank/docker-netatalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (54 loc) · 1.89 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
64
65
FROM debian:jessie-slim as builder
MAINTAINER Wietse Muizelaar <[email protected]>
ENV NETATALK_VERSION 3.1.11
ENV DEPS="build-essential libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libglib2.0-dev file libcrack2-dev libtdb-dev libevent-dev"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install \
--no-install-recommends \
--fix-missing \
--assume-yes \
$DEPS \
wget \
ca-certificates \
&& wget "http://ufpr.dl.sourceforge.net/project/netatalk/netatalk/${NETATALK_VERSION}/netatalk-${NETATALK_VERSION}.tar.gz" \
&& tar xvfz netatalk-${NETATALK_VERSION}.tar.gz
WORKDIR netatalk-${NETATALK_VERSION}
RUN ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-zeroconf \
--disable-tcp-wrappers \
--disable-quota \
--disable-shell-check \
--without-acls \
--with-init-style=debian-systemd \
--without-libevent \
--without-tdb \
--with-cracklib \
--without-kerberos \
--without-ldap \
--without-afpstats \
--with-pam-confdir=/etc/pam.d \
--enable-silent-rules \
&& make \
&& make install DESTDIR=/builded
RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb \
&& dpkg -i dumb-init_1.2.0_amd64.deb
FROM debian:jessie-slim
MAINTAINER Wietse Muizelaar <[email protected]>
ENV LANG C.UTF-8
COPY --from=builder /usr/bin/dumb-init /usr/bin/dumb-init
COPY --from=builder /builded/ /
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY afp.conf /etc/afp.conf
ENV DEBIAN_FRONTEND=newt
RUN apt-get update \
&& apt-get install \
--no-install-recommends \
libevent-2.0 \
libtdb1 \
libcrack2 \
libssl1.0.0
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/docker-entrypoint.sh"]