|
|
@@ -12,7 +12,8 @@ COPY . /app/
|
|
|
RUN mv /app/crontab /etc/cron.d/crontab && chmod 0644 /etc/cron.d/crontab \
|
|
|
&& /usr/bin/crontab /etc/cron.d/crontab \
|
|
|
&& pip install --upgrade pip setuptools -i https://mirrors.aliyun.com/pypi/simple \
|
|
|
- && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
|
|
|
+ && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
|
|
|
+ && pip install git+https://github.com/openai/CLIP.git -i https://mirrors.aliyun.com/pypi/simple
|
|
|
|
|
|
RUN find . | grep -E "(__pycache__|Dockerfile|\.md|\.pyc|\.pyo$)" | xargs rm -rf && python3 -m compileall -b . \
|
|
|
&& find . -name "*.py" |xargs rm -rf && touch /var/log/cron.log
|