-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
50 lines (41 loc) · 1.53 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
46
47
48
49
50
FROM ubuntu:20.04
LABEL app.name="WAIL" \
app.description="Web Archiving Integration Layer: One-Click User Instigated Preservation" \
app.license="MIT License" \
app.license.url="https://github.com/machawk1/wail/blob/main/LICENSE" \
app.repo.url="https://github.com/machawk1/wail"
# TZdata will interactively ask for this info
ENV TZ=Europe/Minsk
ENV DEBIAN_FRONTEND=noninteractive
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# VNC
ENV DISPLAY :20
EXPOSE 5920
RUN apt update && apt install -y \
apt-file \
nano \
git \
libgtk-3-0 \
libgtk-3-dev \
libnotify4 \
libsdl2-2.0-0 \
libsm6 \
libxxf86vm1 \
python3 \
python3-pip \
x11vnc \
xvfb \
language-pack-en \
ttf-ancient-fonts \
openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython==4.2.1 \
&& pip3 install pyinstaller==5.3
WORKDIR /wail
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
COPY . ./
RUN pyinstaller -p bundledApps ./bundledApps/WAIL.py --onefile --windowed --clean \
&& mv /wail/dist/WAIL /wail/WAIL
RUN chmod a+x /wail/WAIL /wail/entrypoint.sh
ENTRYPOINT ["/wail/entrypoint.sh"]