mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-29 16:49:55 +00:00
0e4d42f04c
* Use man2html to generate man pages in the web UI * Fix tests
36 lines
902 B
Docker
36 lines
902 B
Docker
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
|
|
RUN apt-get update && apt-get install -y --no-install-recommends sudo systemd rsyslog procps man-db man2html
|
|
|
|
RUN groupadd pi
|
|
RUN useradd --create-home --shell /bin/bash -g pi pi
|
|
RUN echo "pi ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
|
|
RUN echo "pi:rascsi" | chpasswd
|
|
|
|
RUN mkdir /home/pi/afpshare
|
|
RUN touch /etc/dhcpcd.conf
|
|
RUN mkdir -p /etc/network/interfaces.d/
|
|
|
|
WORKDIR /home/pi/RASCSI
|
|
USER pi
|
|
COPY --chown=pi:pi . .
|
|
|
|
# Standalone RaSCSI web UI
|
|
RUN ./easyinstall.sh --run_choice=11 --skip-token
|
|
|
|
# Wired network bridge
|
|
RUN ./easyinstall.sh --run_choice=6 --headless
|
|
|
|
USER root
|
|
WORKDIR /home/pi
|
|
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"]
|