-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-mvstk4
35 lines (29 loc) · 1.15 KB
/
Dockerfile-mvstk4
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
34
35
FROM ${USER}/hercules-base:latest
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 ca-certificates && \
cd /home/$USERNAME && \
# Dowload the emultor configuration and disk/tape images.
wget -q https://mvstk4.s3.amazonaws.com/tk4-_v1.00_current.zip && \
wget -q https://mvstk4.s3.amazonaws.com/tk4-cbt.zip && \
wget -q https://mvstk4.s3.amazonaws.com/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 ca-certificates && \
apt -y autoremove && \
rm -rf /var/lib/apt/lists/* *.zip && \
chown -R $USERNAME:$USERNAME /home/$USERNAME
USER $USERNAME
WORKDIR /home/$USERNAME
EXPOSE 3270/TCP
EXPOSE 8038/TCP
CMD ["./mvs"]