FROM ghcr.io/xtls/xray-core:latest RUN --mount=type=secret,id=TROJAN_CONFIG,mode=0444,required=true \ /bin/sh -c cat /run/secrets/TROJAN_CONFIG > /etc/xray/config.json