commit 63fb611ecea2207e881007ae77ce445dc6389a2d
Author: Dmitry <b4tm4n@mail.ru>
Date:   Mon Oct 30 12:57:13 2023 +0300

    initial commit

diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..2a4092e
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,2 @@
+.git
+out/
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..89f9ac0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+out/
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..21565e6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+#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
diff --git a/build.ps1 b/build.ps1
new file mode 100644
index 0000000..69a0878
--- /dev/null
+++ b/build.ps1
@@ -0,0 +1,4 @@
+mkdir out
+
+podman build -t tmp/mosh-build .
+podman run --rm -v ./out:/out localhost/tmp/mosh-build:latest