-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.05 KB
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
30
31
32
33
FROM debian:bookworm-slim AS builder
RUN apt-get update && apt-get install -y --no-install-recommends \
bash curl git g++ make wget ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt
RUN git clone https://github.com/factor/factor.git && \
cd factor && \
git checkout cd14ceed53f6f9a43bbd3aec3950d8beb5439ed8
WORKDIR /opt/factor
RUN ./build.sh update
# Remove files not needed at runtime
RUN rm -rf .git build vm src misc Factor.app \
factor.image.fresh boot.*.image libfactor.a libfactor-ffi-test.so \
extra GNUmakefile Nmakefile LICENSE.txt README.md \
build.sh build.cmd unmaintained
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
bash jq coreutils libstdc++6 \
&& rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man \
/usr/share/zoneinfo /usr/share/perl5 /var/lib/dpkg /var/cache
COPY --from=builder /opt/factor /opt/factor
ENV PATH="/opt/factor:${PATH}" \
XDG_CACHE_HOME=/tmp
WORKDIR /opt/test-runner
COPY . .
ENTRYPOINT ["/opt/test-runner/bin/run.sh"]