-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
31 lines (26 loc) · 1.09 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
FROM amd64/alpine
LABEL maintainer="www.mrdoc.fun"
ENV TZ=Asia/Shanghai \
PORT=8886 \
VUID=0
WORKDIR /app
COPY files/verysync-linux-amd64-*.tar.gz /tmp
COPY docker-entrypoint.sh /app
RUN apk add --no-cache tzdata bash \
&& tar -xzvf /tmp/verysync-linux-amd64-*.tar.gz -C /tmp \
&& chmod +x /tmp/verysync-linux-amd64-*/verysync \
&& mv /tmp/verysync-linux-amd64-*/verysync /usr/bin/ \
&& rm -rf /tmp \
&& mkdir -p /data \
&& chmod 777 /data \
&& addgroup -S nonverysync && adduser -S nonverysync -G nonverysync \
&& chmod +x /app/docker-entrypoint.sh
RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.16/gosu-amd64" \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true
HEALTHCHECK --interval=1m --timeout=10s \
CMD nc -z 127.0.0.1 ${PORT} || exit 1
ENTRYPOINT ["/app/docker-entrypoint.sh"]
#ENTRYPOINT ["sh","-c","gosu nonverysync /usr/bin/verysync -no-browser -home /data/.config -gui-address :${PORT}"]
#ENTRYPOINT ["sh","-c","/usr/bin/verysync","-no-browser","-home","/data","-gui-address",":${PORT}"]
# CMD [":8886"]