2022-08-28 13:51:31 +00:00
|
|
|
ARG OS_DISTRO=debian
|
|
|
|
ARG OS_VERSION=buster
|
|
|
|
ARG OS_ARCH=amd64
|
|
|
|
FROM "${OS_ARCH}/${OS_DISTRO}:${OS_VERSION}"
|
|
|
|
|
|
|
|
EXPOSE 80 443
|
|
|
|
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2022-10-04 13:38:15 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends sudo systemd rsyslog procps man-db man2html
|
2022-08-28 13:51:31 +00:00
|
|
|
|
|
|
|
RUN groupadd pi
|
|
|
|
RUN useradd --create-home --shell /bin/bash -g pi pi
|
|
|
|
RUN echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
2022-09-19 13:20:12 +00:00
|
|
|
RUN echo "pi:rascsi" | chpasswd
|
2022-08-28 13:51:31 +00:00
|
|
|
|
2022-09-19 13:20:12 +00:00
|
|
|
RUN mkdir /home/pi/afpshare
|
|
|
|
RUN touch /etc/dhcpcd.conf
|
|
|
|
RUN mkdir -p /etc/network/interfaces.d/
|
|
|
|
|
|
|
|
WORKDIR /home/pi/RASCSI
|
2022-08-28 13:51:31 +00:00
|
|
|
USER pi
|
2022-09-19 13:20:12 +00:00
|
|
|
COPY --chown=pi:pi . .
|
|
|
|
|
2022-10-22 16:49:46 +00:00
|
|
|
# Install standalone RaSCSI web UI
|
2022-10-22 02:49:53 +00:00
|
|
|
RUN ./easyinstall.sh --run_choice=11
|
2022-09-19 13:20:12 +00:00
|
|
|
|
2022-10-22 16:49:46 +00:00
|
|
|
# Enable web UI authentication
|
|
|
|
RUN ./easyinstall.sh --run_choice=13
|
|
|
|
|
|
|
|
# Setup wired network bridge
|
2022-09-19 13:20:12 +00:00
|
|
|
RUN ./easyinstall.sh --run_choice=6 --headless
|
2022-08-28 13:51:31 +00:00
|
|
|
|
|
|
|
USER root
|
2022-09-19 13:20:12 +00:00
|
|
|
WORKDIR /home/pi
|
2022-08-28 13:51:31 +00:00
|
|
|
RUN pip3 install watchdog
|
|
|
|
COPY docker/rascsi-web/start.sh /usr/local/bin/start.sh
|
|
|
|
RUN chmod +x /usr/local/bin/start.sh
|
|
|
|
CMD ["/usr/local/bin/start.sh"]
|