This is not perfect but it works. Useful repo: https://github.com/jessfraz/dockerfiles
- Notable deb file is available on https://notable.app/#download
- .notable.json: https://gist.github.com/marcan2020/ee64d23fab07336798821139cbac221f
- chrome.json: https://github.com/jessfraz/dotfiles/blob/master/etc/docker/seccomp/chrome.json
Dockerfile:
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
COPY ./notable_1.8.4_amd64.deb /opt/notable.deb
RUN cd /opt && apt-get install -y ./notable.deb
RUN cd /opt/Notable && chown root:root chrome-sandbox && chmod 4755 chrome-sandbox
RUN useradd -m -d /home/notable -u 999 notable
RUN chown -R notable:notable /home/notable
USER notable
ENV HOME=/home/notable
COPY ./.notable.json /home/notable/
CMD ["notable"]
Build command:
docker build -t notable .
docker run \
--rm \
-h Docker \
--net none \
-v ~/notable/:/home/notable/notes \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=unix$DISPLAY \
--security-opt seccomp=chrome.json \
--device /dev/dri \
notable
Gtk: cannot open display: :0
Potential fix:
xhost local:root