-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (37 loc) · 1.17 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
FROM ubuntu:20.04
LABEL maintainer="Javad Razavian"
LABEL version="0.1.1"
LABEL description="This image installs mendeleydesktop"
ARG VERSION
# Setting up the system
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
python \
gconf2 \
desktop-file-utils \
libgl1-mesa-glx \
libegl1-mesa \
libnss3 \
libxdamage1 \
libxcomposite1 \
libxi6 \
libxtst6 \
libxrandr2 \
libasound2 \
libxcursor1 \
libfreetype6 \
libfontconfig1 \
curl && \
curl https://desktop-download.mendeley.com/download/apt/pool/main/m/mendeleydesktop/mendeleydesktop_${VERSION}-stable_amd64.deb \
--output /tmp/mendeleydesktop.deb && \
dpkg -i /tmp/mendeleydesktop.deb && \
apt-get autoremove curl ca-certificates -y && \
apt-get -qqy install -f && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
mkdir -p /usr/share/X11/xkb && \
mkdir -p /tmp/runtime-root && \
rm -r /usr/local/share/man /usr/local/man
ENV QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
ENV DISPLAY :0
CMD ["mendeleydesktop"]