move to entrypoint

This commit is contained in:
Thephaseless 2024-10-18 16:43:41 +00:00
parent 0fa7209311
commit 1161787fb0
2 changed files with 4 additions and 2 deletions

View File

@ -55,4 +55,4 @@ RUN poetry install
COPY fix_nodriver.py ./ COPY fix_nodriver.py ./
RUN . /app/.venv/bin/activate && python fix_nodriver.py RUN . /app/.venv/bin/activate && python fix_nodriver.py
COPY . . COPY . .
CMD ["./entrypoint.sh", "&&", ".", "/app/.venv/bin/activate", "&&", "python", "main.py"] CMD ["./entrypoint.sh"]

View File

@ -12,4 +12,6 @@ fluxbox -display :0 &
x11vnc -display :0 -forever -ncache 10 & x11vnc -display :0 -forever -ncache 10 &
# Add delay # Add delay
sleep 5 sleep 5
. .venv/bin/activate && poetry run start