Files
ttyd/Dockerfile-alpine
2019-12-08 18:32:33 +08:00

13 lines
316 B
Plaintext

FROM tsl0922/musl-cross
RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /tmp/ttyd \
&& cd /tmp/ttyd && ./scripts/cross-build.sh x86_64
FROM alpine:3.9
COPY --from=0 /tmp/ttyd/build/ttyd /usr/local/bin/ttyd
RUN apk add --no-cache tini
EXPOSE 7681
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["ttyd", "sh"]