diff --git a/Dockerfile b/Dockerfile index b248ca7..e4db690 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,18 +14,18 @@ ENV PYTHONUNBUFFERED=1 \ 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 +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 -# RUN apt install pipx -y -# RUN pipx ensurepath -# RUN pipx install poetry -# ENV PATH="/root/.local/bin:$PATH" -# COPY pyproject.toml poetry.lock ./ -# RUN poetry install +RUN apt install pipx -y +RUN pipx ensurepath +RUN pipx install poetry +ENV PATH="/root/.local/bin:$PATH" +COPY pyproject.toml poetry.lock ./ +RUN poetry install -# COPY . . -# RUN . /app/.venv/bin/activate && python fix_nodriver.py - -# CMD /usr/local/share/desktop-init.sh && . /app/.venv/bin/activate && python main.py \ No newline at end of file +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