This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
forked from cptactionhank/docker-netatalk
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
68 lines (56 loc) · 2.32 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
ARG FROM_REGISTRY=ghcr.io/dubo-dubon-duponey
ARG FROM_IMAGE_RUNTIME=base:runtime-bullseye-2021-09-01@sha256:bbd3439247ea1aa91b048e77c8b546369138f910b5083de697f0d36ac21c1a8c
#######################
# Running image
#######################
FROM $FROM_REGISTRY/$FROM_IMAGE_RUNTIME
# hadolint ignore=DL3002
USER root
# Install dependencies and tools
RUN --mount=type=secret,uid=100,id=CA \
--mount=type=secret,uid=100,id=CERTIFICATE \
--mount=type=secret,uid=100,id=KEY \
--mount=type=secret,uid=100,id=GPG.gpg \
--mount=type=secret,id=NETRC \
--mount=type=secret,id=APT_SOURCES \
--mount=type=secret,id=APT_CONFIG \
apt-get update -qq && \
apt-get install -qq --no-install-recommends \
dbus=1.12.20-2 \
avahi-daemon=0.8-5 \
netatalk=3.1.12~ds-8 && \
apt-get -qq autoremove && \
apt-get -qq clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*
RUN dbus-uuidgen --ensure \
&& mkdir -p /run/dbus \
&& chown "$BUILD_UID":root /run/dbus \
&& chmod 775 /run/dbus \
&& groupadd afp-share \
&& mkdir -p /media/home \
&& mkdir -p /media/share \
&& mkdir -p /media/timemachine \
&& chown "$BUILD_UID":afp-share /media/home \
&& chown "$BUILD_UID":afp-share /media/share \
&& chown "$BUILD_UID":afp-share /media/timemachine \
&& chmod g+srwx /media/home \
&& chmod g+srwx /media/share \
&& chmod g+srwx /media/timemachine
# XXX disable healthchecker for now
# COPY --from=builder-healthcheck /dist/boot/bin /dist/boot/bin
# RUN chmod 555 /dist/boot/bin/*
VOLUME /etc
VOLUME /var/log
VOLUME /data
VOLUME /run
EXPOSE 548
ENV NAME="Farcloser Netatalk"
ENV USERS=""
ENV PASSWORDS=""
ENV NAME=TotaleCroquette
# ENV HEALTHCHECK_URL=http://127.0.0.1:548
VOLUME /media/home
VOLUME /media/share
VOLUME /media/timemachine