aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2026-01-12 20:22:17 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2026-01-12 20:24:37 -0500
commitb905e61ae0dae0dec58fa9657d4e1514566b143f (patch)
tree0eb1c61c050399df44f77bba0c5881a4988bb53b /Containerfile
parent939ac4319cb047a37ba46f84eff81948063f6954 (diff)
downloadunixv4-master.tar.gz
unixv4-master.tar.xz
Reduce the size of the Linux system. Add a better readme.HEADmaster
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile19
1 files changed, 14 insertions, 5 deletions
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/