mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
673da6312b
Add --token parameter to easyinstall.sh Add --skip-token parameter to easyinstall.sh Install required apt packages explicitly (--no-install-recommends) Allow standalone RaSCSI and web UI installations to specify an auth token Add development mode to web UI (web/start.sh --dev-mode) Initial Docker-based development environment for Python and web UI Bump protobuf version Workaround for Flask development server and asyncio incompatibility Build Python protobuf interface on container launch, if it doesn’t exist Allow containers to be configured with environment variables, add support for token authentication Move web UI live editing setup out of main Docker Compose config Update dockerignore to exclude by default Update README Add OS_DISTRO, OS_VERSION and OS_ARCH build args Allow extracted files to be moved to target when crossing a filesystem boundary Reduce noise from watchmedo auto-restarts Update Docker tag structure to rascsi:{build}-{platform}-{variant} Prevent Docker Compose from attempting to pull images from Docker registry Add workaround for issue #821 Allow container processes to be stopped with Ctrl+C Update README, bind to ports 8080/8443 on the Docker host by default Update README to clarify audience and no board connectivity Add AIBOM and GAMERNIUM to --connect_type validation Update cfilesystem.patch following rebase
25 lines
644 B
Docker
25 lines
644 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 rsyslog procps
|
|
|
|
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
|
|
USER pi
|
|
COPY --chown=pi:pi . RASCSI
|
|
RUN cd RASCSI && ./easyinstall.sh --run_choice=11 --skip-token
|
|
|
|
USER root
|
|
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"]
|