| FROM ubuntu:22.04 | |
| LABEL org.opencontainers.image.source="https://github.com/vevc/one-node" | |
| ENV TZ=Asia/Shanghai \ | |
| UUID=cb6df3f6-87e7-4df9-a425-a79d66336988 \ | |
| DOMAIN=nich2456-fml.hf.space | |
| COPY entrypoint.sh /entrypoint.sh | |
| COPY app /app | |
| RUN export DEBIAN_FRONTEND=noninteractive; \ | |
| apt-get update; \ | |
| apt-get install -y tzdata openssh-server curl ca-certificates wget vim net-tools supervisor unzip iputils-ping telnet git iproute2 --no-install-recommends; \ | |
| apt-get clean; \ | |
| rm -rf /var/lib/apt/lists/*; \ | |
| chmod +x /entrypoint.sh; \ | |
| chmod -R 777 /app; \ | |
| useradd -u 1000 -g 0 -m -s /bin/bash user; \ | |
| ln -snf /usr/share/zoneinfo/$TZ /etc/localtime; \ | |
| echo $TZ > /etc/timezone | |
| COPY --from=builder /app/xy /usr/local/bin/xy | |
| COPY --from=builder /app/td /usr/local/bin/td | |
| COPY --from=builder /app/supercronic /usr/local/bin/supercronic | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/entrypoint.sh"] | |
| CMD ["supervisord", "-c", "/app/supervisor/supervisord.conf"] |