add new versions
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user