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 FROM alpine:latest
MAINTAINER Daniel Guerra RUN apk add x11vnc xvfb supervisor firefox \
ADD /apk /apk && addgroup bnuuy \
RUN cp /apk/.abuild/-58b83ac3.rsa.pub /etc/apk/keys && adduser -G bnuuy -s /bin/sh -D bnuuy \
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 \
&& rm -rf /apk /tmp/* /var/cache/apk/* && rm -rf /apk /tmp/* /var/cache/apk/*
ADD etc /etc ADD etc /etc
WORKDIR /home/alpine WORKDIR /home/bnuuy
EXPOSE 5900 EXPOSE 5900 5901
USER alpine USER bnuuy
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"] 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 nodaemon=true
[program:xvfb] [program:xvfb]
command=/usr/bin/Xvfb :1 -screen 0 1920x1080x24 command=/usr/bin/Xvfb :1 -screen 0 1366x768x24
autorestart=true autorestart=true
user=alpine user=bnuuy
priority=100 priority=100
[program:x11vnc] [program:x11vnc]
command=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :1 -nopw -wait 5 -shared -permitfiletransfer -tightfilexfer command=/usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :1 -nopw -wait 5 -shared -permitfiletransfer -tightfilexfer
user=alpine user=bnuuy
autorestart=true autorestart=true
priority=200 priority=200
[program:openbox] [program:openbox]
environment=HOME="/home/alpine",DISPLAY=":1",USER="alpine" environment=HOME="/home/bnuuy",DISPLAY=":1",USER="bnuuy"
command=/usr/bin/openbox command=/usr/bin/firefox -width 1366 -height 768
user=alpine user=bnuuy
autorestart=true autorestart=true
priority=300 priority=300