-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-mvstk5
33 lines (26 loc) · 924 Bytes
/
Dockerfile-mvstk5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:testing-slim
LABEL maintainer="Ricardo Bánffy <[email protected]>"
ARG USERNAME=hercules
ARG USER_UID=1000
ARG USER_GID=$USER_UID
COPY build/mvs-tk5 /tmp/mvs-tk5
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 && \
# Copy the emultor configuration and disk/tape images.
mv /tmp/mvs-tk5 . && \
cd mvs-tk5 && \
chmod +x mvs mvs_ipl mvs_osx start_herc && \
# 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/mvs-tk5
EXPOSE 3270/TCP
EXPOSE 8038/TCP
CMD ["./mvs"]