# ============================================================ # Moneydance in Docker — browser-accessible via noVNC # Base: jlesage/baseimage-gui (handles X11 + VNC + noVNC) # Access: http://:5800 # ============================================================ FROM jlesage/baseimage-gui:debian-11-v4 # ── Build arguments ───────────────────────────────────────── # Download the Linux .deb from https://infinitekind.com/download # Right-click the Linux 64-bit installer link and copy the URL, # then pass it at build time: # docker build --build-arg MD_URL=https://... -t moneydance . ARG MD_URL ARG APP_VERSION=unknown # ── Labels ────────────────────────────────────────────────── LABEL maintainer="you" LABEL description="Moneydance personal finance — browser GUI via noVNC" LABEL version="${APP_VERSION}" # ── Install runtime dependencies ──────────────────────────── RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ ca-certificates \ 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 build with:"; \ echo " docker build --build-arg MD_URL= -t moneydance ."; \ 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/* # ── Locate the Moneydance executable ──────────────────────── # The .deb typically installs to /opt/moneydance/moneydance # Adjust this path if your version installs elsewhere. RUN test -f /opt/Moneydance/Moneydance \ || (echo "Moneydance binary not found at /opt/Moneydance/Moneydance — check install path" && exit 1) # ── App startup script (required by baseimage-gui) ────────── RUN echo '#!/bin/sh' > /startapp.sh \ && echo 'export HOME=/config' >> /startapp.sh \ && echo 'mkdir -p "${HOME}/Documents/Moneydance"' >> /startapp.sh \ && echo 'exec /opt/Moneydance/Moneydance "$@"' >> /startapp.sh \ && chmod +x /startapp.sh # ── Environment ───────────────────────────────────────────── ENV APP_NAME="Moneydance" # baseimage-gui maps $HOME to /config by default. # Moneydance stores its data in ~/Documents/Moneydance (Linux), # so your data file will live at /config/Documents/Moneydance # inside the container — persist this via a volume mount. # ── Ports ─────────────────────────────────────────────────── # 5800 = noVNC web interface (HTTP) # 5900 = raw VNC (optional, for VNC clients) EXPOSE 5800 5900 # ── Volume ────────────────────────────────────────────────── VOLUME ["/config"]