diff --git a/Dockerfile b/Dockerfile index dd26d07..68b5931 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM python:3.10 +FROM python:3.10-alpine LABEL authors="Swaggeroo" WORKDIR /usr/src/app # install dependencies from requirements.txt COPY src/app.py . -COPY requirements.txt . RUN mkdir ./data -RUN pip install python-bring-api gkeepapi gpsoauth==1.0.2 urllib3==1.25.1 schedule +RUN pip install python-bring-api gkeepapi schedule +RUN pip install gpsoauth==1.0.2 urllib3==1.25.1 # start app CMD [ "python", "./app.py" ] \ No newline at end of file diff --git a/readme.md b/readme.md index 62d830f..4a6cd62 100644 --- a/readme.md +++ b/readme.md @@ -30,6 +30,7 @@ You need to provide the following environment variables: | 2 | Google master. Changes in Google Keep will be reflected in Bring. Bring changes will be ignored. | ### Please note +- **!!Important!!** I couldn't get the Google Auth work in the container. Therefore I first ran the script locally and copied the token.txt file to the container. YES you need not matching dependencies (At least I needed). You probably need to install them manually. If you know how to fix this, please let me know. - The token.txt file is used to store the Google Auth token. It is created automatically. You can delete it at any time to force a new login. Keep it safe as it can be used to access your Google account. - I didn't tested expiration of the token yet. If it expires, the script will probably crash. At the next run it should delete the token.txt and crash again. After that it should work again. With docker this should be no problem as the container will be restarted automatically. - At first run the script will take the keep and bring lists and merge them (Only with SYNC_MODE 0). After that it will only sync changes. \ No newline at end of file