Separate API, proc

This commit is contained in:
oitsjustjose 2023-04-22 23:46:37 -05:00
commit 6a3f531527
27 changed files with 334 additions and 104 deletions

33
processor/Dockerfile Normal file
View file

@ -0,0 +1,33 @@
FROM python:3.10-buster
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y libasound2 \
libnspr4 \
libnss3 \
libxss1 \
xdg-utils \
unzip \
libappindicator1 \
fonts-liberation \
xvfb \
libatk-bridge2.0-0 \
libatspi2.0-0 \
libgbm1 \
libgtk-3-0 \
libu2f-udev \
libvulkan1 \
libxkbcommon0
RUN apt-get -f install
RUN wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome*.deb && rm google-chrome*.deb
# Patch to make XVFB actually work
RUN mkdir /tmp/.X11-unix
RUN chmod 1777 /tmp/.X11-unix
RUN chown root /tmp/.X11-unix/
COPY . .
RUN pip install -r requirements.txt
CMD ["python", "src/__main__.py"]