From 8270020bff32e656d21d1e6e3e336c090eae0403 Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Thu, 25 Jul 2024 00:04:00 +0000 Subject: [PATCH] final touches --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e4db690..977d838 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,16 +4,15 @@ WORKDIR /app EXPOSE 8191 # python -ENV PYTHONUNBUFFERED=1 \ +ENV \ + DEBIAN_FRONTEND=noninteractive \ + PYTHONUNBUFFERED=1 \ # prevents python creating .pyc files PYTHONDONTWRITEBYTECODE=1 \ # do not ask any interactive question POETRY_NO_INTERACTION=1 \ POETRY_VIRTUALENVS_IN_PROJECT=true -COPY novnc.sh . -RUN ./novnc.sh - RUN apt update && apt upgrade -y RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt install -y --no-install-recommends --no-install-suggests ./google-chrome-stable_current_amd64.deb && rm ./google-chrome-stable_current_amd64.deb @@ -25,7 +24,12 @@ ENV PATH="/root/.local/bin:$PATH" COPY pyproject.toml poetry.lock ./ RUN poetry install +ENV INSTALL_NOVNC=false +COPY novnc.sh . +RUN ./novnc.sh +ENV DISPLAY=:1.0 + COPY . . RUN . /app/.venv/bin/activate && python fix_nodriver.py -ENV DISPLAY=:1.0 + CMD /usr/local/share/desktop-init.sh && . /app/.venv/bin/activate && python main.py \ No newline at end of file