initial commit

This commit is contained in:
Dmitry Belyaev 2023-10-30 12:57:13 +03:00
commit 63fb611ece
4 changed files with 30 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
out/

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
out/

23
Dockerfile Normal file
View File

@ -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

4
build.ps1 Normal file
View File

@ -0,0 +1,4 @@
mkdir out
podman build -t tmp/mosh-build .
podman run --rm -v ./out:/out localhost/tmp/mosh-build:latest