From b905e61ae0dae0dec58fa9657d4e1514566b143f Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Mon, 12 Jan 2026 20:22:17 -0500 Subject: Reduce the size of the Linux system. Add a better readme. --- Containerfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile index fa16c73..9303688 100644 --- a/Containerfile +++ b/Containerfile @@ -10,7 +10,8 @@ RUN apk add \ libpcap-dev \ libpng-dev \ sdl2-dev \ - pcre-dev + pcre-dev \ + pcre-static COPY simh.zip /opt/ @@ -18,7 +19,7 @@ RUN mkdir -p /opt/simh WORKDIR /opt/simh RUN bsdtar --strip-components=1 -xzvf /opt/simh.zip # RUN make pdp11 -RUN make CFLAGS_G='-march=i386' pdp11 -j$(nproc) +RUN make CFLAGS_G='-march=i386 -static -no-pie -s -O2' pdp11 -j$(nproc) RUN cp BIN/pdp11 /usr/bin/pdp11 RUN mkdir /opt/unixv4 @@ -33,12 +34,20 @@ RUN apk del \ libedit-dev \ libpcap-dev \ libpng-dev \ + libedit \ + libpcap \ + libpng \ + sdl2 \ + pcre \ sdl2-dev \ - pcre-dev + pcre-dev \ + apk-tools \ + alpine-keys \ + pcre-static + -RUN rm -rf /var/cache/apk /opt/simh /opt/simh.zip -RUN apk add pcre sdl2 +RUN rm -rf /var/cache/apk /opt/simh /opt/simh.zip COPY entrypoint.sh /bin/ -- cgit v1.2.3