forked from u1i/ubuntu-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.wine
45 lines (37 loc) · 1.33 KB
/
Dockerfile.wine
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:18.04
MAINTAINER uli.hitzel@gmail.com
EXPOSE 8080 5901
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Singapore
RUN apt-get update
RUN apt-get install -y xfce4 xfce4-terminal
RUN apt-get install -y novnc
RUN apt-get install -y tightvncserver websockify
RUN apt-get install -y wget net-tools wget curl chromium-browser firefox openssh-client git
ENV USER root
#RUN printf "axway99\naxway99\n\n" | vncserver :1
COPY start.sh /start.sh
RUN chmod a+x /start.sh
RUN useradd -ms /bin/bash user
RUN mkdir /.novnc
RUN chown user:user /.novnc
COPY config /home/user
RUN chown -R user:user /home/user
USER user
WORKDIR /.novnc
RUN wget -qO- https://github.com/novnc/noVNC/archive/v1.0.0.tar.gz | tar xz --strip 1 -C $PWD
RUN mkdir /.novnc/utils/websockify
RUN wget -qO- https://github.com/novnc/websockify/archive/v0.6.1.tar.gz | tar xz --strip 1 -C /.novnc/utils/websockify
RUN ln -s vnc.html index.html
USER 0
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=dummy
RUN dpkg --add-architecture i386
RUN apt-get update
RUN wget -qO - https://dl.winehq.org/wine-builds/winehq.key | apt-key add -
RUN apt-get install -y software-properties-common
RUN apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
RUN apt-get update
RUN apt-get install -y --install-recommends winehq-stable
USER user
WORKDIR /home/user
CMD ["sh","/start.sh"]