-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·36 lines (26 loc) · 1.14 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·36 lines (26 loc) · 1.14 KB
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
FROM alpine AS wsdd2-builder
# upstream Netgear/wsdd2 repo was deleted - use the Debian snapshot orig tarball (immutable archive)
# NOTE: keep 'wsdd2' in every line of this stage - generate-variants.sh strips it via 'grep -v wsdd2'
RUN apk add --no-cache make gcc libc-dev linux-headers && wget -O wsdd2.tar.xz https://snapshot.debian.org/file/28506e4e22bf56ca81edfd348a5fb45d0df02ebf \
&& tar -xJf wsdd2.tar.xz && cd wsdd2-1.8.7 && sed -i 's/-O0/-O0 -Wno-int-conversion/g' Makefile && make
FROM alpine
# alpine:3.14
COPY --from=wsdd2-builder /wsdd2-1.8.7/wsdd2 /usr/sbin
ENV PATH="/container/scripts:${PATH}"
RUN apk add --no-cache runit \
tzdata \
avahi \
samba \
\
&& sed -i 's/#enable-dbus=.*/enable-dbus=no/g' /etc/avahi/avahi-daemon.conf \
&& rm -vf /etc/avahi/services/* \
\
&& mkdir -p /external/avahi \
&& touch /external/avahi/not-mounted \
&& echo done
VOLUME ["/shares"]
EXPOSE 137/udp 139 445
COPY . /container/
HEALTHCHECK CMD ["/container/scripts/docker-healthcheck.sh"]
ENTRYPOINT ["/container/scripts/entrypoint.sh"]
CMD [ "runsvdir","-P", "/container/config/runit" ]