another attempt at alpine

This commit is contained in:
shim_ 2018-11-10 15:49:13 +01:00
parent 6fb12158b0
commit f0a43458e3
2 changed files with 5 additions and 4 deletions

View File

@ -7,6 +7,7 @@ pipeline:
docker: docker:
image: plugins/docker image: plugins/docker
repo: repo.shimun.net/shimun/seafile repo: repo.shimun.net/shimun/seafile
tag: alpine
registry: repo.shimun.net registry: repo.shimun.net
storage_path: /drone/.docker storage_path: /drone/.docker
secrets: ["docker_username", "docker_password"] secrets: ["docker_username", "docker_password"]

View File

@ -1,4 +1,4 @@
FROM nginx:mainline FROM nginx:mainline-alpine
VOLUME /opt/seafile VOLUME /opt/seafile
@ -8,9 +8,9 @@ ENV SEAF=/opt/seafile
COPY requirements.txt /tmp/requirements.txt 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 apk --no-cache add py-pip sqlite-dev py-mysqldb py-pillow curl bash openssl-dev libevent libc6-compat \
&& pip install -r /tmp/requirements.txt && apt remove -y python-pip \ && pip install -r /tmp/requirements.txt && apk --no-cache del py-pip \
&& rm -rf /var/lib/apt/lists/* /tmp/requirements.txt && rm -f /tmp/requirements.txt
COPY conf /opt/seafile/conf COPY conf /opt/seafile/conf
COPY conf /etc/seafile COPY conf /etc/seafile