FROM tsl0922/musl-cross RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \ && cd /ttyd && ./scripts/cross-build.sh x86_64 FROM ubuntu:18.04 COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini /sbin/tini RUN chmod +x /sbin/tini EXPOSE 7681 ENTRYPOINT ["/sbin/tini", "--"] CMD ["ttyd", "bash"]