onedrive update

This commit is contained in:
kadma
2025-03-16 16:10:08 -05:00
committed by GitHub
parent 730ae6124a
commit 867fdd776c
13 changed files with 98 additions and 91 deletions

View File

@@ -1,21 +1,10 @@
FROM ubuntu
FROM python:3.9-slim
WORKDIR /app
RUN apt update && apt upgrade -y && apt autoremove -y && apt install python3 python3-pip -y && apt install git nano wget curl -y
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install schedule
COPY script.py .
COPY . .
ENV IP_PING="http://127.0.0.1:8080/call"
ENV TOKEN="token"
ENV PASSWORD_WEB="pass"
ENV SUPERCOMANDO='curl -X POST -H "Content-Type: application/json" -d '{"password": "$PASSWORD_WEB" ,"refresh_token": "$TOKEN"}' "$IP_PING"'
RUN chmod +x run.sh
ENTRYPOINT ./run.sh
CMD ["python", "script.py"]