-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathDockerfile
executable file
·34 lines (24 loc) · 940 Bytes
/
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
FROM alpine AS wsdd2-builder
RUN apk add --no-cache make gcc libc-dev linux-headers && wget -O - https://github.com/Netgear/wsdd2/archive/refs/heads/master.tar.gz | tar zxvf - \
&& cd wsdd2-master && sed -i 's/-O0/-O0 -Wno-int-conversion/g' Makefile && make
FROM alpine
# alpine:3.14
COPY --from=wsdd2-builder /wsdd2-master/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" ]