From 25d547b297fcb2de21e5c0f39b49509cfc863eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20B=C3=A1nffy?= Date: Sat, 2 Sep 2023 17:07:43 +0100 Subject: [PATCH] Initial MVS Tk4 support --- Dockerfile-mvstk4 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Dockerfile-mvstk4 diff --git a/Dockerfile-mvstk4 b/Dockerfile-mvstk4 new file mode 100644 index 0000000..8bf24d9 --- /dev/null +++ b/Dockerfile-mvstk4 @@ -0,0 +1,33 @@ +FROM debian:testing-slim + +LABEL maintainer="Ricardo Bánffy " + +ARG USERNAME=hercules +ARG USER_UID=1000 +ARG USER_GID=$USER_UID + +RUN DEBIAN_FRONTEND=noninteractive \ + groupadd --gid $USER_GID $USERNAME && \ + useradd --uid $USER_UID --gid $USER_GID -m $USERNAME && \ + apt update && \ + apt upgrade -y && \ + apt install -y --no-install-recommends hercules wget unzip && \ + cd /home/$USERNAME && \ + wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-_v1.00_current.zip && \ + wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-cbt.zip && \ + wget --no-check-certificate https://wotho.ethz.ch/tk4-/tk4-source.zip && \ + unzip tk4-_v1.00_current.zip && \ + unzip -o tk4-cbt.zip && \ + unzip -o tk4-source.zip && \ + # Remove unwanted files. + apt purge -y wget unzip && \ + rm -rf /var/lib/apt/lists/* *.zip && \ + chown -R $USERNAME:$USERNAME /home/$USERNAME + +USER $USERNAME +WORKDIR /home/$USERNAME + +EXPOSE 3270/TCP +EXPOSE 8081/TCP + +CMD [$WORKDIR, "start_herc"]