-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.distroless
29 lines (24 loc) · 1.41 KB
/
Dockerfile.distroless
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
FROM docker.io/library/debian:12.8-slim as builder
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential=12.9 \
ca-certificates=20230311 \
git=1:2.39.2-1.1 \
sudo=1.9.13p3-1+deb12u1
# Not removing cache here because the deps.sh script can use it.
# The cache will not be in the final stage of the image anyway.
RUN mkdir /simh \
&& git clone --depth 1 https://github.com/open-simh/simh.git /simh \
&& /simh/.travis/deps.sh linux \
&& /simh/cmake/cmake-builder.sh --novideo --noinstall --parallel --target pdp11
# FROM gcr.io/distroless/base-debian12:nonroot
FROM gcr.io/distroless/base-debian12@sha256:7a4bffcb07307d97aa731b50cb6ab22a68a8314426f4e4428335939b5b1943a5
COPY --from=builder /usr/lib/x86_64-linux-gnu/libvdeplug.so.2 /usr/lib/x86_64-linux-gnu/libvdeplug.so.2
COPY --from=builder /lib/x86_64-linux-gnu/libpcre.so.3 /lib/x86_64-linux-gnu/libpcre.so.3
COPY --from=builder /usr/lib/x86_64-linux-gnu/libedit.so.2 /usr/lib/x86_64-linux-gnu/libedit.so.2
COPY --from=builder /usr/lib/x86_64-linux-gnu/libbsd.so.0 /usr/lib/x86_64-linux-gnu/libbsd.so.0
COPY --from=builder /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.6
COPY --from=builder /usr/lib/x86_64-linux-gnu/libmd.so.0 /usr/lib/x86_64-linux-gnu/libmd.so.0
COPY --from=builder /lib/terminfo /lib/terminfo
COPY --from=builder /simh/BIN/pdp11 /bin/pdp11
ENTRYPOINT ["/bin/pdp11"]