You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.6 KiB
Docker
44 lines
1.6 KiB
Docker
FROM ubuntu:18.10
|
|
LABEL maintainer="urielCh <admin@uriel.ovh>"
|
|
|
|
ENV DEBIAN_FRONTEND="noninteractive" \
|
|
LC_ALL="C.UTF-8"
|
|
|
|
RUN set -ex;\
|
|
apt-get update;\
|
|
echo ;\
|
|
echo installing other packages;\
|
|
echo ;\
|
|
optsDeps="iputils-ping net-tools";\
|
|
apt-get install -y xvfb pulseaudio supervisor x11vnc wget $optsDeps chromium-browser;\
|
|
rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/*;
|
|
# pulseaudio
|
|
# xdg-utils libnss3 libnspr4 libcairo2 libatk1.0-0 fonts-liberation libappindicator3-1 libatk-bridge2.0-0 libpango-1.0-0 fonts-takao
|
|
|
|
RUN set -ex;\
|
|
echo setup node; \
|
|
wget -qO- https://deb.nodesource.com/setup_10.x | /bin/bash -;\
|
|
apt-get install -y nodejs;\
|
|
rm -rf /var/cache/* /var/log/apt/* /var/lib/apt/lists/*;
|
|
|
|
RUN set -ex;\
|
|
useradd --create-home --groups pulse-access --password chrome chrome;\
|
|
{ echo "chrome"; echo "chrome"; } | passwd chrome;\
|
|
chown -R chrome:chrome /home/chrome/; \
|
|
cd /home/chrome; \
|
|
mkdir -p /home/chrome/plugin /home/chrome/webRobotJS; \
|
|
wget -qO- https://github.com/UrielCh/zombie-plugin/releases/download/v4.0.5/zombie-v4.0.5.tar.gz | tar xvz -C /home/chrome/plugin/; \
|
|
wget -qO- https://github.com/UrielCh/webRobotJS/releases/download/v1.0.0/robotJsWeb-$(uname -m)-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
|
|
USER root
|
|
|
|
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|