Browse Source

Merge pull request #2 from sndrtj/master

Fix permission error and allow interactive mode in entrypoint.sh
master
Nikolay Yurin 2 years ago
committed by GitHub
parent
commit
8074f0f173
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Dockerfile
  2. 13
      entrypoint.sh

4
Dockerfile

@ -18,7 +18,9 @@ RUN useradd --system folding && \
apt-get autoremove --yes && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /opt/fahclient
COPY --chown=folding:folding entrypoint.sh /opt/fahclient
RUN chmod +x /opt/fahclient/entrypoint.sh
ENV USER "Anonymous"
ENV TEAM "0"

13
entrypoint.sh

@ -1,11 +1,12 @@
#!/bin/bash
set -e
/opt/fahclient/FAHClient \
--user=${USER} \
--team=${TEAM} \
--passkey=${PASSKEY} \
--gpu=${ENABLE_GPU} \
--smp=${ENABLE_SMP} \
--user="${USER}" \
--team="${TEAM}" \
--passkey="${PASSKEY}" \
--gpu="${ENABLE_GPU}" \
--smp="${ENABLE_SMP}" \
--power=full \
--gui-enabled=false \
${@}
"${@}"
Loading…
Cancel
Save