-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 1.01 KB
/
Dockerfile
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
FROM ghcr.io/sourcemeta/registry-ee:main AS builder
COPY configuration.json /app/configuration.json
COPY vendor /app/vendor
# For debugging purposes
RUN ldd /usr/bin/sourcemeta-registry-index
RUN ldd /usr/bin/sourcemeta-registry-server
RUN sourcemeta-registry-index /app/configuration.json /app/index
FROM scratch
COPY --from=builder /usr/bin/sourcemeta-registry-server \
/usr/bin/sourcemeta-registry-server
COPY --from=builder /usr/share/sourcemeta/registry \
/usr/share/sourcemeta/registry
COPY --from=builder /app/index /app/index
# Linker
COPY --from=builder /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
COPY --from=builder /etc/ld.so.cache /etc/ld.so.cache
# Based on an ldd(1) output on Debian Bookworm
COPY --from=builder /lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/
COPY --from=builder /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/
COPY --from=builder /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/
COPY --from=builder /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/