Test
This commit is contained in:
63
Dockerfile
63
Dockerfile
@@ -1,20 +1,47 @@
|
||||
FROM ghcr.io/hassio-addons/debian-base:7.2.0
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-ubuntu:noble
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG FOLDINGATHOME_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="aptalca"
|
||||
|
||||
#Add needed nvidia environment variables for container toolkit
|
||||
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||||
|
||||
# global environment settings
|
||||
ENV DEBIAN_FRONTEND="noninteractive"
|
||||
|
||||
RUN \
|
||||
echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
gnupg && \
|
||||
curl -sSL https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/fah-client_8.4.9_amd64.deb -o /fahclient.deb && \
|
||||
echo "Installing fahclient..." && \
|
||||
dpkg -i /fahclient.deb && \
|
||||
apt-get install -f -y && \
|
||||
echo "Verifying installation..." && \
|
||||
ls -l /usr/bin/fahclient || echo "fahclient not found" && \
|
||||
rm /fahclient.deb && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
COPY rootfs /
|
||||
echo "**** install runtime packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
bzip2 \
|
||||
intel-opencl-icd \
|
||||
libexpat1 && \
|
||||
ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so && \
|
||||
echo "**** install foldingathome ****" && \
|
||||
download_url="https://download.foldingathome.org/releases/public/fah-client/"$(curl -s https://download.foldingathome.org/releases/public/fah-client/meta.json | jq -r '.[] | select((.package | contains("debian")) and (.package | contains("release"))) | .package' | grep -v "arm64" | grep "tar.bz2") && \
|
||||
curl -o \
|
||||
/tmp/fah.tar.bz2 -L \
|
||||
${download_url} && \
|
||||
tar xf /tmp/fah.tar.bz2 -C /app --strip-components=1 && \
|
||||
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
|
||||
echo "**** cleanup ****" && \
|
||||
apt-get clean && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/* \
|
||||
/var/log/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 7396
|
||||
CMD ["/usr/bin/fahclient", "--config", "/config/config.xml", "${CLI_ARGS}"]
|
||||
|
||||
VOLUME /config
|
||||
Reference in New Issue
Block a user