mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
25 lines
899 B
Docker
25 lines
899 B
Docker
FROM alpine
|
|
ARG TARGETARCH
|
|
|
|
LABEL org.opencontainers.image.authors="The Syncthing Project" \
|
|
org.opencontainers.image.url="https://syncthing.net" \
|
|
org.opencontainers.image.documentation="https://docs.syncthing.net" \
|
|
org.opencontainers.image.source="https://github.com/syncthing/syncthing" \
|
|
org.opencontainers.image.vendor="The Syncthing Project" \
|
|
org.opencontainers.image.licenses="MPL-2.0" \
|
|
org.opencontainers.image.title="Syncthing Relay Pool Server"
|
|
|
|
EXPOSE 8080
|
|
|
|
RUN apk add --no-cache ca-certificates su-exec curl
|
|
ENV PUID=1000 PGID=1000 MAXMIND_KEY=
|
|
|
|
RUN mkdir /var/strelaypoolsrv && chown 1000 /var/strelaypoolsrv
|
|
USER 1000
|
|
|
|
COPY strelaypoolsrv-linux-${TARGETARCH} /bin/strelaypoolsrv
|
|
COPY script/strelaypoolsrv-entrypoint.sh /bin/entrypoint.sh
|
|
|
|
WORKDIR /var/strelaypoolsrv
|
|
ENTRYPOINT ["/bin/entrypoint.sh", "/bin/strelaypoolsrv", "-listen", ":8080"]
|