jellyfin-opencl-intel: initial release

This commit is contained in:
aptalca
2020-12-01 12:17:29 -05:00
parent d1dc6e5858
commit 3f35a2158d
7 changed files with 73 additions and 74 deletions
+29 -3
View File
@@ -1,6 +1,32 @@
FROM scratch
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.12 as buildstage
LABEL maintainer="username"
ARG COMP_RT_RELEASE
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
jq && \
if [ -z "${COMP_RT_RELEASE}" ]; then \
COMP_RT_RELEASE=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/latest" | jq -r '.tag_name'); \
fi && \
COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${COMP_RT_RELEASE}" | jq -r '.body' | grep wget | grep -v ww47 | sed 's|wget ||g') && \
echo "**** grab debs ****" && \
mkdir -p /root-layer/opencl-intel && \
for i in $COMP_RT_URLS; do \
echo "downloading ${i%$'\r'}" && \
curl -o /root-layer/opencl-intel/$(basename "${i%$'\r'}") \
-L "${i%$'\r'}"; \
done
# copy local files
COPY root/ /
COPY root/ /root-layer/
## Single layer deployed image ##
FROM scratch
LABEL maintainer="aptalca"
# Add files from buildstage
COPY --from=buildstage /root-layer/ /