-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
45 lines (40 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:17.10
ARG version=2.6.1
ARG buildhost=https://downloads.sourceforge.net/project/mnemosyne-proj/mnemosyne/mnemosyne-${version}
ARG tar_filename=Mnemosyne-${version}.tar.gz
VOLUME ["/opt/mnemosyne/data"]
RUN apt-get update \
&& apt-get install --no-install-recommends \
-y \
wget \
ca-certificates \
python3 \
python3-pip \
python3-setuptools \
python3-pyqt5 \
python3-cherrypy3 \
python3-matplotlib \
python3-webob \
python3-pillow \
python3-pyqt5.qtwebengine \
&& update-ca-certificates \
&& pip3 install --no-cache-dir \
cheroot \
&& wget ${buildhost}/${tar_filename} \
&& mkdir /mnemosyne \
&& tar xvf "${tar_filename}" -C mnemosyne --strip 1 \
&& rm "${tar_filename}" \
&& cd /mnemosyne \
&& python3 setup.py build \
&& python3 setup.py install --optimize=1 \
&& rm -r /mnemosyne \
&& apt-get purge -y \
--autoremove \
wget \
python3-setuptools \
&& rm -rf /var/lib/apt/lists/*
CMD ["mnemosyne", \
"--datadir=/opt/mnemosyne/data", \
"--no-upgrades", \
"--sync-server"]
EXPOSE 8512 8513