2017-07-06 03:14:04 +00:00
|
|
|
FROM txgio/anki
|
|
|
|
|
2017-07-06 03:53:54 +00:00
|
|
|
USER root
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y xvfb
|
|
|
|
USER anki-user
|
|
|
|
|
2017-07-06 03:14:04 +00:00
|
|
|
RUN mkdir -p /home/anki-user/Documents/Anki/addons
|
|
|
|
|
|
|
|
COPY AnkiConnect.py /home/anki-user/Documents/Anki/addons
|
|
|
|
|
2017-08-29 03:18:10 +00:00
|
|
|
ENV ANKICONNECT_BIND_ADDRESS 0.0.0.0
|
2017-07-06 03:14:04 +00:00
|
|
|
|
2017-08-29 03:18:10 +00:00
|
|
|
COPY tests/docker/prefs.db /home/anki-user/Documents/Anki/prefs.db
|
2017-07-06 03:14:04 +00:00
|
|
|
|
2017-08-29 03:18:10 +00:00
|
|
|
ADD tests/docker/entrypoint.sh /entrypoint.sh
|
2017-07-06 03:53:54 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
USER anki-user
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
2017-07-06 03:14:04 +00:00
|
|
|
CMD /bin/bash -c "(/usr/bin/ibus-daemon -xd; /usr/bin/anki;)"
|