mirror of
https://github.com/linuxserver/docker-foldingathome.git
synced 2026-02-20 04:22:11 +08:00
43 lines
1.2 KiB
Docker
43 lines
1.2 KiB
Docker
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
|
||
|
||
# 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 https://github.com/NVIDIA/nvidia-docker
|
||
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||
|
||
# global environment settings
|
||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||
MAJOR_VERSION=7.6
|
||
|
||
RUN \
|
||
echo "**** install runtime packages ****" && \
|
||
apt-get update && \
|
||
apt-get install -y \
|
||
jq \
|
||
ocl-icd-libopencl1 && \
|
||
ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so && \
|
||
echo "**** install foldingathome ****" && \
|
||
download_url=$(curl -sL https://download.foldingathome.org/releases.py?series=${MAJOR_VERSION} | jq -r '.[] | select(.title=="64bit Linux") | .groups[].files[].url' | grep "fahclient" | grep "deb" | grep "amd64") && \
|
||
curl -o \
|
||
/tmp/fah.deb -L \
|
||
${download_url} && \
|
||
dpkg -x /tmp/fah.deb /app && \
|
||
echo "**** cleanup ****" && \
|
||
apt-get clean && \
|
||
rm -rf \
|
||
/tmp/* \
|
||
/var/lib/apt/lists/* \
|
||
/var/tmp/*
|
||
|
||
# add local files
|
||
COPY root/ /
|
||
|
||
# ports and volumes
|
||
EXPOSE 7396
|
||
VOLUME /config
|