Skip to content

Commit

Permalink
Initial MVS Tk4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rbanffy committed Sep 2, 2023
1 parent 7ce85dc commit 25d547b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Dockerfile-mvstk4
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM debian:testing-slim

LABEL maintainer="Ricardo Bánffy <[email protected]>"

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"]

0 comments on commit 25d547b

Please sign in to comment.