PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
# 从源码构建服务器镜像。在仓库根目录执行:
#
# docker build -f server/deploy/Dockerfile.source -t pasteferry-server .
FROM golang:1.26 AS build
WORKDIR /src
COPY proto ./proto
COPY server ./server
ARG VERSION=dev
RUN cd server && CGO_ENABLED=0 go build -trimpath \
-ldflags "-s -w -X main.version=${VERSION}" \
-o /out/pasteferry-server ./cmd/pasteferry-server
FROM scratch
COPY --from=build /out/pasteferry-server /pasteferry-server
EXPOSE 8787/tcp 3478/udp
ENTRYPOINT ["/pasteferry-server"]