open firefox

This commit is contained in:
xfnw 2021-05-25 12:20:40 -04:00
parent 868835cd83
commit 66935daae1
4 changed files with 13 additions and 28 deletions

View file

@ -1,16 +1,10 @@
FROM alpine:3.5
MAINTAINER Daniel Guerra
ADD /apk /apk
RUN cp /apk/.abuild/-58b83ac3.rsa.pub /etc/apk/keys
RUN apk --no-cache --update add /apk/x11vnc-0.9.13-r0.apk
RUN apk --no-cache add xvfb openbox xfce4-terminal supervisor sudo \
&& addgroup alpine \
&& adduser -G alpine -s /bin/sh -D alpine \
&& echo "alpine:alpine" | /usr/sbin/chpasswd \
&& echo "alpine ALL=(ALL) ALL" >> /etc/sudoers \
FROM alpine:latest
RUN apk add x11vnc xvfb supervisor firefox \
&& addgroup bnuuy \
&& adduser -G bnuuy -s /bin/sh -D bnuuy \
&& rm -rf /apk /tmp/* /var/cache/apk/*
ADD etc /etc
WORKDIR /home/alpine
EXPOSE 5900
USER alpine
WORKDIR /home/bnuuy
EXPOSE 5900 5901
USER bnuuy
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]

View file

@ -1,9 +0,0 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsScqFpw/xdeDGzISSiaa
3BCqR/8qJOVjv+V5nlqcPkeXW96EuXS1VK9Vx/vcGHvbw8TGR4jZtXYI2oA+3pD2
4bZcpfFUB3CVcz54T8zMw5CaC/JmS4hKbMudw9UQxPwVERgBAQHJJGENgTUlfj5Q
Q7QQ/bqvAp1z81ZF3ZRAgLAYZZRXFUpjCPm4MkpHjIBphLlDPTMTuhVD3vN4swFR
C/siJfpElppkmPUyGhWSBzbzsPgcn6CtKfDvvhNe8xWjCx89io32B6oTjFr+XXo2
zrwoyQXYQijvE1ItaC6UFRjxayHD3euzMnAhweYGOugYqRGfFvKUPIGsEfiU65Hx
CQIDAQAB
-----END PUBLIC KEY-----

Binary file not shown.

View file

@ -2,20 +2,20 @@
nodaemon=true
[program:xvfb]
command=/usr/bin/Xvfb :1 -screen 0 1920x1080x24
command=/usr/bin/Xvfb :1 -screen 0 1366x768x24
autorestart=true
user=alpine
user=bnuuy
priority=100
[program:x11vnc]
command=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :1 -nopw -wait 5 -shared -permitfiletransfer -tightfilexfer
user=alpine
user=bnuuy
autorestart=true
priority=200
[program:openbox]
environment=HOME="/home/alpine",DISPLAY=":1",USER="alpine"
command=/usr/bin/openbox
user=alpine
environment=HOME="/home/bnuuy",DISPLAY=":1",USER="bnuuy"
command=/usr/bin/firefox -width 1366 -height 768
user=bnuuy
autorestart=true
priority=300