mosh-build-static/Dockerfile

24 lines
911 B
Docker
Raw Permalink Normal View History

2023-10-30 09:57:13 +00:00
#FROM ubuntu:22.04
FROM debian:buster
#FROM ghcr.io/tiredofit/docker-debian:buster
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y build-essential autogen automake autoconf dh-make dh-autoreconf debhelper-compat git-buildpackage perl protobuf-compiler libprotobuf-dev pkg-config libutempter-dev zlib1g-dev libncurses5-dev libssl-dev bash-completion locales tmux less git
WORKDIR /src
#RUN git clone --depth 1 https://github.com/b4tman/mosh mosh
RUN git clone --depth 1 https://github.com/mobile-shell/mosh mosh
WORKDIR /src/mosh
RUN sed -i "s/--enable-completion/--enable-completion --enable-static-libgcc --enable-static-libstdc++ --enable-static-utempter --enable-static-zlib --enable-static-curses --enable-static-protobuf /g" debian/rules
#RUN apt-get install -y libcrypto++-dev
RUN dpkg-buildpackage -b --no-sign
VOLUME /out
CMD cp ../*.deb /out