-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
50 lines (39 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 dorowu/ubuntu-desktop-lxde-vnc:bionic
MAINTAINER BarryBarry <[email protected]>
USER root
RUN apt update && sudo apt install dirmngr -y
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
RUN apt update && apt upgrade -y && apt install -y python3-pip python3 apt-utils
RUN pip3 install --upgrade pip
WORKDIR /
COPY ./src /src
RUN pip3 install -r ./src/requirements.txt
# required dependency is missing
RUN apt install libssl1.0.0 -y
RUN touch /dev/mem
RUN useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
RUN echo "ubuntu:ubuntu" | chpasswd
RUN bash -c 'cp -r /root/{.gtkrc-2.0,.asoundrc} /home/ubuntu/'
RUN mkdir -p "/home/ubuntu/.config/autostart"
RUN chown -R ubuntu:ubuntu /home/ubuntu/
RUN apt install --no-install-recommends software-properties-common -y
RUN add-apt-repository ppa:vbernat/haproxy-2.6 -y
RUN apt install haproxy -y
COPY ./haproxy.cfg /etc/haproxy/haproxy.cfg
RUN chmod 644 /etc/haproxy/haproxy.cfg
RUN chown root:root /etc/haproxy/haproxy.cfg
RUN mkdir -p /var/lib/update-notifier/
RUN python3 ./src/main.py
RUN echo "#!/bin/sh"|tee /usr/bin/systemctl
RUN chmod +x /usr/bin/systemctl
RUN echo "/opt/anysign4pc/amd64/"|tee "/etc/ld.so.conf.d/anysign4pc.conf"
RUN ldconfig
COPY ./resources/crosswebex.desktop /usr/share/applications/crosswebex.desktop
# ipinside-lws must run with root
RUN rm /usr/share/applications/ipinside-lws.desktop
ENV USER=ubuntu
ENV PASSWORD=ubuntu
ENV TINI_SUBREAPER=true
COPY ./run.sh /run.sh
RUN chmod +x /run.sh
ENTRYPOINT ["/run.sh"]