-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
72 lines (59 loc) · 2 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
66
67
68
69
70
71
72
FROM debian:buster as base
ENV NETATALK_VERSION 3.1.12
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install \
--assume-yes \
apt-utils
FROM base as build
ENV BUILD_DEPS \
build-essential \
dpkg-dev \
dh-make \
fakeroot \
libevent-dev \
libssl-dev \
libgcrypt-dev \
libkrb5-dev \
libpam0g-dev \
libwrap0-dev \
libdb-dev \
libtdb-dev \
libmariadb-dev-compat \
libavahi-client-dev \
libacl1-dev \
libldap2-dev \
libcrack2-dev \
systemtap-sdt-dev \
libdbus-1-dev \
libdbus-glib-1-dev \
libglib2.0-dev \
libtracker-sparql-2.0-dev \
libtracker-miner-2.0-dev \
libltdl-dev \
file
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install \
--no-install-recommends \
--fix-missing \
--assume-yes \
$BUILD_DEPS \
tracker \
avahi-daemon \
curl
RUN curl -sSL http://ufpr.dl.sourceforge.net/project/netatalk/netatalk/${NETATALK_VERSION}/netatalk-${NETATALK_VERSION}.tar.gz -O \
&& tar fxvz netatalk-${NETATALK_VERSION}.tar.gz \
&& cd netatalk-${NETATALK_VERSION}
WORKDIR netatalk-${NETATALK_VERSION}
RUN DEBFULLNAME="Instant User" DEBEMAIL="[email protected]" dh_make -s -c gpl3 --yes --createorig
ADD rules.add .
RUN cat rules.add >> debian/rules
RUN debian/rules binary
FROM base
RUN mkdir /media/share
COPY --from=build /netatalk_*.deb /
RUN dpkg --force-depends -i "/netatalk_${NETATALK_VERSION}-1_$(dpkg --print-architecture).deb" && apt-get install -f -y
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY afp.conf /etc/afp.conf
ENV DEBIAN_FRONTEND=newt
CMD ["/docker-entrypoint.sh"]