Closed martin-git closed 4 months ago
Thanks for reporting! I haven't had much time for this project lately, but i will try to take a look in the next days. I believe i have fixed this in the past, but the opened a PR yet.
In the meantime, you can try the following Dockerfile with the command: docker buildx build --platform linux/amd64 -f Dockerfile -t antonengelhardt/kicktipp-bot:amd . && docker rm kicktipp-bot && docker run --name kicktipp-bot --platform linux/amd64 --env-file .env antonengelhardt/kicktipp-bot:amd
. Remember to set up your .env
with the values KICKTIPP_EMAIL
, KICKTIPP_PASSWORD
and KICKTIPP_NAME_OF_COMPETITION
.
FROM python:3.12.4-alpine
# install chromedriver
RUN apk update
RUN apk add chromium
RUN apk add chromium-chromedriver
WORKDIR /app
# upgrade pip
RUN pip install --upgrade pip
# copy files
COPY requirements.txt requirements.txt
COPY main.py main.py
COPY game.py game.py
# Install the Python requirements
RUN pip install -r requirements.txt
CMD ["python3", "./main.py", "headless"]
For some reason, the command is not running automatically. Maybe some packages are missing. Im posting this in case you want to take a look yourself. But as i said, i'll take a look in the next days :)
@martin-git Could you check again with the latest image on GHCR (not Docker Hub)?
Using the docker image from the readme, I get an error about incompatible chromedriver versions: