# ============================================================ # Moneydance in Docker — browser-accessible via noVNC # Base: linuxserver/webtop (full Openbox desktop, proper window management) # Access: http://:3000 # ============================================================ FROM lscr.io/linuxserver/webtop:ubuntu-openbox # ── Build arguments ───────────────────────────────────────── # Download the Linux .deb from https://infinitekind.com/download # Right-click the Linux 64-bit installer link and copy the URL, # then set it in your .env file as: MD_URL=https://... ARG MD_URL ARG MD_VERSION=unknown # ── Labels ────────────────────────────────────────────────── LABEL maintainer="you" LABEL description="Moneydance personal finance — browser GUI via noVNC" LABEL version="${MD_VERSION}" # ── Install runtime dependencies ──────────────────────────── RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ ca-certificates \ wmctrl \ libglib2.0-0 \ libgtk-3-0 \ libx11-6 \ libxext6 \ libxrender1 \ libxtst6 \ libxi6 \ libfreetype6 \ fontconfig \ && rm -rf /var/lib/apt/lists/* # ── Download and install Moneydance ───────────────────────── # Moneydance bundles its own JRE, so no separate Java install needed. RUN if [ -z "${MD_URL}" ]; then \ echo ""; \ echo "ERROR: MD_URL build argument is required."; \ echo "Get the Linux 64-bit .deb download link from:"; \ echo " https://infinitekind.com/download"; \ echo "Then add to your .env file:"; \ echo " MD_URL=https://"; \ echo ""; \ exit 1; \ fi \ && wget -q -O /tmp/moneydance.deb "${MD_URL}" \ && dpkg -i /tmp/moneydance.deb || true \ && apt-get install -f -y --no-install-recommends \ && rm -f /tmp/moneydance.deb \ && rm -rf /var/lib/apt/lists/* # ── Verify install ────────────────────────────────────────── RUN test -f /opt/Moneydance/Moneydance \ || (echo "Moneydance binary not found at /opt/Moneydance/Moneydance — check install path" && exit 1) # ── Autostart Moneydance on desktop login ─────────────────── # Place outside /config so volume mounts don't overwrite it RUN mkdir -p /etc/xdg/openbox \ && printf '#!/bin/sh\nwhile true; do\n /opt/Moneydance/Moneydance &\n sleep 8\n wmctrl -r "install4j-Moneydance.install4j-Moneydance" -x -b add,maximized_vert,maximized_horz\n wait\n sleep 1\ndone &\n' >> /etc/xdg/openbox/autostart # ── Openbox config ────────────────────────────────────────── # Decorate all windows, maximize nothing, center everything. # Let Moneydance manage its own window sizes. RUN mkdir -p /etc/xdg/openbox \ && cat > /etc/xdg/openbox/rc.xml << 'EOF' 10 20 yes no yes no 200 no Smart
yes
Clearlooks NLC yes yes 1 1 0 1 500 yes false center center
EOF # ── Ports ─────────────────────────────────────────────────── # 3000 = noVNC web interface (HTTP) # 3001 = noVNC web interface (HTTPS) EXPOSE 3000 3001 # ── Volume ────────────────────────────────────────────────── # /config is the persistent home directory for the 'abc' user # Moneydance data will be at /config/Documents/Moneydance VOLUME ["/config"]