aboutsummaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
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/