-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (30 loc) · 1.4 KB
/
Dockerfile
File metadata and controls
40 lines (30 loc) · 1.4 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
34
35
36
37
38
39
40
ARG BASEIMAGE=almalinux:8
ARG PYTHON_VERSION=3.13
FROM $BASEIMAGE AS base
ENV PYTHONDONTWRITEBYTECODE=1
FROM base AS dnf_deps
RUN dnf install -y --setopt=install_weak_deps=False \
openssl-devel
FROM base AS build_patchelf
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/build-patchelf.sh
FROM base AS build_jq
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/build-jq.sh
FROM base AS build_squashfstools
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/build-squashfstools.sh
FROM base AS get_appimage_runtime
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/get-appimage-runtime.sh
FROM dnf_deps AS build_zsync2
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/build-zsync2.sh
FROM dnf_deps AS install_license_files
ARG PYTHON_VERSION
COPY --from=get_appimage_runtime /usr/local/share/appimage/excludelist /usr/local/share/appimage/excludelist
RUN --mount=type=bind,source=./scripts,target=/scripts /scripts/install-license-files.sh \
"${PYTHON_VERSION}" \
/usr/local/share/appimage/licenses
FROM base
COPY --from=build_patchelf /usr/local/bin/patchelf /usr/local/bin/patchelf
COPY --from=build_jq /usr/local /usr/local/
COPY --from=build_squashfstools /usr/local /usr/local/
COPY --from=get_appimage_runtime /usr/local /usr/local/
COPY --from=build_zsync2 /usr/local /usr/local/
COPY --from=install_license_files /usr/local /usr/local/