Update Dockerfile with Linuxserver-inspired optimizations and CLI_ARGS
This commit is contained in:
34
Dockerfile
34
Dockerfile
@@ -1,17 +1,23 @@
|
|||||||
FROM ghcr.io/hassio-addons/debian-base:7.2.0
|
FROM ghcr.io/hassio-addons/debian-base:7.2.0
|
||||||
RUN \
|
|
||||||
echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \
|
# Set up package sources
|
||||||
apt-get update && \
|
RUN echo "deb http://deb.debian.org/debian bullseye main" > /etc/apt/sources.list && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get update && \
|
||||||
curl \
|
apt-get install -y --no-install-recommends \
|
||||||
ca-certificates && \
|
curl \
|
||||||
curl -sSL https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/release/fah-client_8.4.9_amd64.deb -o /fahclient.deb && \
|
ca-certificates \
|
||||||
ls -l /fahclient.deb && \
|
gnupg && \
|
||||||
dpkg -i /fahclient.deb || true && \
|
curl -sSL https://download.foldingathome.org/releases/public/fah-client/debian-10-64bit/v8.4.9/fahclient_8.4.9_amd64.deb -o /fahclient.deb && \
|
||||||
apt-get install -f -y && \
|
dpkg -i /fahclient.deb || apt-get install -f -y && \
|
||||||
rm /fahclient.deb && \
|
rm /fahclient.deb && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Copy rootfs
|
||||||
COPY rootfs /
|
COPY rootfs /
|
||||||
|
|
||||||
|
# Expose port
|
||||||
EXPOSE 7396
|
EXPOSE 7396
|
||||||
ENTRYPOINT [ "/init" ]
|
|
||||||
|
# Default command with support for CLI args
|
||||||
|
CMD ["/usr/bin/fahclient", "--config", "/config/config.xml", "${CLI_ARGS}"]
|
||||||
Reference in New Issue
Block a user