-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
43 lines (32 loc) · 1.08 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
FROM ubuntu:18.04
MAINTAINER Paulo Murer
RUN apt-get update
RUN apt-get install -y sudo wget curl vim
RUN apt-get install -y xvfb
RUN apt-get install -y openbox tint2
RUN apt-get install -y x11vnc
RUN apt-get install -y firefox
RUN apt-get install -y xterm
RUN apt-get install -y lxterminal
RUN apt-get install -y gmrun
RUN apt-get install -y pcmanfm
ARG PARAM_UID=8500
ARG PARAM_GID=8500
RUN groupadd -g "${PARAM_GID}" "vncuser" || true
RUN adduser --disabled-password --uid "${PARAM_UID}" --gid "${PARAM_GID}" --gecos "vncuser" "vncuser"
RUN groupadd -r supersudo
RUN echo "%supersudo ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/supersudo
RUN usermod -a -G supersudo "vncuser"
ADD config /opt/config
RUN chmod +x /opt/config/docker-entrypoint.sh /opt/config/openbox/autostart
RUN rm -rf /etc/xdg/openbox && \
cp -R /opt/config/openbox /etc/xdg/openbox && \
(rm -rf /etc/xdg/tint2 || true) && \
cp -R /opt/config/tint2 /etc/xdg/tint2
USER vncuser
ENV HOME /home/vncuser
ENV USER vncuser
WORKDIR /home/vncuser
ENV DISPLAY :99
EXPOSE 5900
CMD "/opt/config/docker-entrypoint.sh"