-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 867 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (15 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:latest as builder
LABEL previous-stage=builder
# prepare builder
RUN apt update -qq && apt install -qq -y build-essential curl gpg python3 file
# do make
RUN mkdir -p /build/
RUN mkdir -p /common/
RUN curl -o /common/prepare_dir.sh https://raw.githubusercontent.com/runshine/static_binary_tools/refs/heads/main/build/common/prepare_dir.sh && chmod +x /common/prepare_dir.sh
RUN curl -o /common/utils_func.sh https://raw.githubusercontent.com/runshine/static_binary_tools/refs/heads/main/build/common/utils_func.sh && chmod +x /common/utils_func.sh
RUN curl -o /common/arch_detect.sh https://raw.githubusercontent.com/runshine/static_binary_tools/refs/heads/main/build/common/arch_detect.sh && chmod +x /common/arch_detect.sh
COPY . /build/
RUN /build/build.sh
FROM busybox:latest
COPY --from=builder /build/install /build/install
CMD ["/bin/bash"]