From 939c3acc7ebb3b9ea52ffee83fca626eaea97605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Wed, 6 May 2020 13:31:06 +0200 Subject: [PATCH] mount cache folder --- .drone.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6512e8d..49be844 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,7 +21,6 @@ steps: image: "python:3.8" commands: - pip3 install --cache-dir='./.pipcache' pylint bandit mccabe - - pip3 install --cache-dir='./.pipcache' cython numpy==1.18.2 - pip3 install --cache-dir='./.pipcache' -r requirements.txt - find . -name "*.py" -exec python3 -m py_compile '{}' \; - find . -name "*.py" -exec pylint '{}' + || if [ $? -eq 1 ]; then echo "you fail"; fi @@ -63,4 +62,5 @@ steps: volumes: - name: cache - temp: {} + host: + path: /tmp/cache diff --git a/Dockerfile b/Dockerfile index bfc818c..bd88bcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,6 @@ ENV PIP_NO_CACHE_DIR=true ENV TZ Europe/Budapest RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -RUN pip3 install cython numpy==1.18.2 && pip3 install -r requirements.txt +RUN pip3 install -r requirements.txt ENTRYPOINT ["python3","main.py"]