mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
ade656e38b
* Break out frontend and backend auth options into stand alone options * Improve the token auth checks when installing clients
31 lines
889 B
Docker
31 lines
889 B
Docker
ARG OS_DISTRO=debian
|
|
ARG OS_VERSION=buster
|
|
ARG OS_ARCH=amd64
|
|
FROM "${OS_ARCH}/${OS_DISTRO}:${OS_VERSION}"
|
|
|
|
EXPOSE 6868
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends sudo systemd rsyslog patch
|
|
|
|
RUN groupadd pi
|
|
RUN useradd --create-home --shell /bin/bash -g pi pi
|
|
RUN echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
|
|
WORKDIR /home/pi/RASCSI
|
|
USER pi
|
|
COPY --chown=pi:pi . .
|
|
|
|
# Workaround for Bullseye amd64 compilation error
|
|
# https://github.com/akuker/RASCSI/issues/821
|
|
RUN patch -p0 < docker/rascsi/cfilesystem.patch
|
|
|
|
# Install RaSCSI standalone
|
|
RUN ./easyinstall.sh --run_choice=10 --cores=`nproc`
|
|
|
|
USER root
|
|
WORKDIR /home/pi
|
|
COPY docker/rascsi/rascsi_wrapper.sh /usr/local/bin/rascsi_wrapper.sh
|
|
RUN chmod +x /usr/local/bin/rascsi_wrapper.sh
|
|
CMD ["/usr/local/bin/rascsi_wrapper.sh", "-L", "trace", "-r", "7", "-F", "/home/pi/images"]
|