New oru/coned addon

This commit is contained in:
Bogdan Vlaicu
2020-09-11 19:50:34 -04:00
parent ac87c7e53f
commit ad87239214
13 changed files with 365 additions and 0 deletions
Executable
+30
View File
@@ -0,0 +1,30 @@
FROM debian:buster
USER root
RUN apt-get update && apt-get upgrade -yq
RUN apt-get install python3 python3-pip jq nano -y
# Install chrome and dependencies
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
--no-install-recommends \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update && apt-get install -y \
google-chrome-stable \
--no-install-recommends
# Chrome won't run from the root user.
RUN groupadd chrome && useradd -g chrome -s /bin/bash -G audio,video chrome \
&& mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY run.py .
COPY run.sh .
CMD cd / && chmod +x /run.sh && /run.sh