2 Commits
arch ... py3

Author SHA1 Message Date
24aea9ae06 python3
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is failing
2020-02-22 14:34:41 +01:00
27b1aa1db4 update drone yaml 2020-02-22 14:34:35 +01:00
2 changed files with 9 additions and 5 deletions

View File

@ -1,13 +1,15 @@
pipeline:
nginx-conf:
kind: pipeline
name: default
steps:
- name: nginx-conf
image: nginx:mainline
commands:
- cp -r nginx /etc/nginx
- nginx -t
docker:
- name: docker
image: plugins/docker
repo: repo.shimun.net/shimun/seafile
tag: riffol
auto_tag: true
registry: repo.shimun.net
storage_path: /drone/.docker
secrets: ["docker_username", "docker_password"]
@ -15,3 +17,5 @@ pipeline:
cache_from: ["repo.shimun.net/shimun/seafile", "repo.shimun.net/shimun/seafile:nginx-deb", "repo.shimun.net/shimun/seafile:alpine"]
use_cache: true
pull_image: false
when:
event: tag

View File

@ -12,7 +12,7 @@ ENV SEAF=/opt/seafile
COPY requirements.txt /tmp/requirements.txt
RUN apt update && apt install locales -y && apt install -y --no-install-recommends procps openssl python2.7 sqlite3 python-mysqldb python-pil curl libjansson4 libfuse2 python-pip python-pip-whl python-setuptools \
RUN apt update && apt install locales -y && apt install -y --no-install-recommends procps openssl python3 sqlite3 python-mysqldb python-pil curl libjansson4 libfuse2 python-pip python-pip-whl python-setuptools \
&& pip install -r /tmp/requirements.txt && apt remove -y python-pip \
&& rm -rf /var/lib/apt/lists/* /tmp/requirements.txt