Files
ttyd/Dockerfile-alpine
2019-12-08 22:33:06 +08:00

13 lines
306 B
Plaintext

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 alpine:3.10
COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
RUN apk add --no-cache bash tini
EXPOSE 7681
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["ttyd", "bash"]