-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 1.59 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:22.04
ENV LANG C.UTF-8
ENV DISPLAY :1
ARG DEBIAN_FRONTEND=noninteractive
ARG BUILD_DATE
ARG COMMIT_SHA
# https://github.com/opencontainers/image-spec/blob/master/spec.md
LABEL org.opencontainers.image.title='huawei-vpn' \
org.opencontainers.image.created="${BUILD_DATE}" \
org.opencontainers.image.description='Huawei SSL VPN official client' \
org.opencontainers.image.documentation='https://github.com/jesusdf/huawei-vpn/blob/master/README.md' \
org.opencontainers.image.version='1.0' \
org.opencontainers.image.source='https://github.com/jesusdf/huawei-vpn' \
org.opencontainers.image.revision="${COMMIT_SHA}"
# http://www.leagsoft.com/doc/article/103107.html
# https://download.leagsoft.com/download/UniVPN/linux/univpn-linux-64-10781.13.0.0522.zip
COPY bin/univpn*/*.run /tmp/univpn.run
RUN /usr/bin/apt-get update && \
/usr/bin/apt-get dist-upgrade -y && \
/usr/bin/apt-get install -y --no-install-recommends libqt5gui5 qt5dxcb-plugin xcb xcb-proto && \
/usr/bin/apt-get install -y --no-install-recommends xserver-xorg-video-dummy x11-apps x11-xserver-utils xdg-user-dirs x11vnc && \
/usr/bin/apt-get install -y --no-install-recommends file libdbus-glib-1-2 libgtk-3-0 libx11-xcb1 libxt6 libasound2 && \
rm -rf /var/lib/apt/lists/* && \
/usr/bin/apt-get clean
RUN set -x && \
mkdir -p /usr/share/fonts/ && \
chmod +x /tmp/univpn.run && \
/tmp/univpn.run && \
rm -f /usr/local/UniVPN/*.run && \
rm -rf /tmp && \
mkdir /tmp && \
chmod 777 /tmp
COPY xorg.conf /
COPY startup.sh /
CMD ["/startup.sh"]
EXPOSE 5900