-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
22 lines (16 loc) · 991 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:3.8
ENV VERSYNC_VERSION 2.5.5
ENV GLIBC_VERSION 2.30-r0
RUN apk add --no-cache --update-cache --update curl ca-certificates \
&& curl -o /tmp/glibc.apk -L "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk" \
&& curl -o /tmp/glibc-bin.apk -L "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk" \
&& apk add --allow-untrusted /tmp/glibc.apk \
&& apk add --allow-untrusted /tmp/glibc-bin.apk \
&& wget http://releases.verysync.com/releases/v${VERSYNC_VERSION}/verysync-linux-amd64-v${VERSYNC_VERSION}.tar.gz \
&& tar zxvf verysync-linux-amd64-v${VERSYNC_VERSION}.tar.gz \
&& mkdir /data \
&& rm -rf /var/cache/apk/* /tmp/* /var/tmp/* verysync-linux-amd64-v${VERSYNC_VERSION}.tar.gz
WORKDIR /verysync-linux-amd64-v${VERSYNC_VERSION}
VOLUME /data
EXPOSE 8886 22330
ENTRYPOINT ["./verysync","-gui-address","0.0.0.0:8886"]