remove this version
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 13m56s

This commit is contained in:
2024-10-29 15:02:24 +00:00
parent 2ea001148f
commit 7617cc89fb
-26
View File
@@ -1,26 +0,0 @@
FROM debian
WORKDIR /usr/src/app
#COPY requirements.txt ./
#RUN pip install --no-cache-dir -r requirements.txt
RUN apt -y update
RUN apt -y update && apt install -y curl unzip libsecret-1-0 jq
RUN export VER=$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/bitwarden/clients/releases | jq -r .[4].name | sed 's:.*v::') && \
curl -LO "https://github.com/bitwarden/clients/releases/download/cli-v{$VER}/bw-linux-{$VER}.zip" \
&& unzip bw-linux-*.zip && chmod +x ./bw
RUN rm bw-linux-*.zip
RUN mv /bw /usr/local/bin
RUN bw --version
#COPY . .
#RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf
#CMD [ "python", "./nextcloud_ics_sync.py",">>","/var/log/nextcloud-ics-sync.log"]
CMD [ "sleep","3600" ]
#CMD echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo $(date) >> /var/log/nextcloud-ics-sync.log 2>&1 ; python ./nextcloud_ics_sync.py >> /var/log/nextcloud-ics-sync.log 2>&1 ; echo "==================================================================================" >> /var/log/nextcloud-ics-sync.log 2>&1