2019-04-08 17:24:35 +00:00
|
|
|
FROM alpine:3.9
|
|
|
|
LABEL maintainer="urielCh <admin@uriel.ovh>"
|
|
|
|
|
|
|
|
RUN apk add --no-cache xvfb pulseaudio supervisor x11vnc xdg-utils wget chromium nodejs
|
|
|
|
|
|
|
|
RUN set -ex;\
|
|
|
|
adduser -D -u 1000 chrome pulse-access;\
|
|
|
|
mkdir -p /home/chrome/plugin /home/chrome/webRobotJS; \
|
|
|
|
wget -qO- https://github.com/UrielCh/zombie-plugin/releases/download/4.0.0/zombie-v4.0.0.tar.gz | tar xvz -C /home/chrome/plugin/; \
|
|
|
|
wget -qO- https://github.com/UrielCh/webRobotJS/releases/download/v1.0.0/roboJsWeb-x86_64-node-v10.tar.gz | tar xvz -C /home/chrome/webRobotJS/;
|
|
|
|
|
|
|
|
# RUN apt-get install -y xvfb && echo rm -rf /tmp/*
|
|
|
|
# RUN apt-get update && apt-get install -y && dpkg -i /tmp/google-chrome-stable_current_amd64.deb
|
|
|
|
ADD conf/ /
|
|
|
|
RUN chmod +x /*.sh
|
|
|
|
VOLUME ["/home/chrome"]
|
|
|
|
|
|
|
|
EXPOSE 5900
|
2019-04-08 19:08:38 +00:00
|
|
|
USER root
|
2019-04-08 17:24:35 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|