Browse Source

change Dockerfile

main
winloong 3 years ago
parent
commit
8d0da05d8a
  1. 4
      syncimages/app/Dockerfile
  2. 2
      syncimages/app/logging.ini

4
syncimages/app/Dockerfile

@ -9,7 +9,9 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re
&& pip install --no-cache kubernetes requests docker -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& rm -rf /var/cache/apk/* \
&& usermod -aG ping rootless \
&& echo "0 1 * * * run-parts /app/syncimages.py" >> /etc/crontabs/root
&& echo "#!/bin/sh \n\
python syncimages.py " >> /etc/periodic/daily/sync-images \
&& chmod +x /etc/periodic/daily/sync-images
WORKDIR /app

2
syncimages/app/logging.ini

@ -19,7 +19,7 @@ formatter=formatter
[handler_fileHandler]
class=FileHandler
args=('log.log', 'a')
args=('/app/log.log', 'a')
level=INFO
formatter=formatter