1
0
Fork 0

Merge pull request #2 from sndrtj/master

Fix permission error and allow interactive mode in entrypoint.sh
This commit is contained in:
Nikolay Yurin 2020-03-07 13:48:36 -08:00 committed by GitHub
commit 8074f0f173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 7 deletions

View File

@ -18,7 +18,9 @@ RUN useradd --system folding && \
apt-get autoremove --yes && \ apt-get autoremove --yes && \
rm -rf /var/lib/apt/lists/* 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 USER "Anonymous"
ENV TEAM "0" ENV TEAM "0"

View File

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