File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- FROM tsl0922/musl-cross
2- RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
1+ FROM ubuntu:18.04
2+ RUN apt-get update && apt-get install -y autoconf automake curl cmake git libtool make \
3+ && git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
34 && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh
45
56FROM ubuntu:18.04
@@ -9,6 +10,7 @@ ADD https://github.com/krallin/tini/releases/download/v0.18.0/tini /sbin/tini
910RUN chmod +x /sbin/tini
1011
1112EXPOSE 7681
13+ WORKDIR /root
1214
1315ENTRYPOINT ["/sbin/tini" , "--" ]
1416CMD ["ttyd" , "bash" ]
Original file line number Diff line number Diff line change 1- FROM tsl0922/musl-cross
2- RUN git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
1+ FROM ubuntu:18.04
2+ RUN apt-get update && apt-get install -y autoconf automake curl cmake git libtool make \
3+ && git clone --depth=1 https://github.com/tsl0922/ttyd.git /ttyd \
34 && cd /ttyd && env BUILD_TARGET=x86_64 WITH_SSL=true ./scripts/cross-build.sh
45
5- FROM alpine:3.10
6+ FROM alpine:3.12
67COPY --from=0 /ttyd/build/ttyd /usr/bin/ttyd
78RUN apk add --no-cache bash tini
89
910EXPOSE 7681
11+ WORKDIR /root
1012
1113ENTRYPOINT ["/sbin/tini", "--"]
1214CMD ["ttyd", "bash"]
You can’t perform that action at this time.
0 commit comments