| ADD alpine-minirootfs-3.24.3-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c adduser -D -H -u 10001 rustcloud && mkdir /data && chown rustcloud /data # buildkit |
| COPY /rustcloud /usr/local/bin/rustcloud # buildkit |
| COPY /apps /usr/share/rustcloud/apps # buildkit |
| COPY /opt/ffmpeg/bin/ffmpeg /opt/ffmpeg/bin/ffprobe /usr/libexec/rustcloud/ # buildkit |
| USER rustcloud |
| WORKDIR /data |
| ENV RUSTCLOUD_CONFIG=/data/rustcloud.toml RUSTCLOUD_LISTEN=0.0.0.0:8080 RUSTCLOUD_DATA_DIR=/data RUSTCLOUD_DATABASE_URL=sqlite:///data/rustcloud.db?mode=rwc RUSTCLOUD_BUILTIN_APPS_DIR=/usr/share/rustcloud/apps RUSTCLOUD_MEDIA_TOOLS_DIR=/usr/libexec/rustcloud |
| EXPOSE [8080/tcp] |
| VOLUME [/data] |
| HEALTHCHECK {Test:[CMD-SHELL wget -qO- http://127.0.0.1:8080/health >/dev/null || exit 1] Interval:30s Timeout:3s StartPeriod:0s StartInterval:0s Retries:0} |
| ENTRYPOINT ["rustcloud"] |