summaryrefslogtreecommitdiffstats
path: root/Dockerfile-alpine
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile-alpine')
-rw-r--r--Dockerfile-alpine14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile-alpine b/Dockerfile-alpine
new file mode 100644
index 0000000..53266bb
--- /dev/null
+++ b/Dockerfile-alpine
@@ -0,0 +1,14 @@
+FROM ubuntu:18.04
+RUN apt-get update && apt-get install -y autoconf automake curl cmake git libtool make \
+ && git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
+ && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh
+
+FROM alpine:3.12
+COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
+RUN apk add --no-cache bash tini
+
+EXPOSE 7681
+WORKDIR /root
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["ttyd", "bash"]