From f0a43458e3e38501dad40683a758f61653869646 Mon Sep 17 00:00:00 2001 From: shim_ <> Date: Sat, 10 Nov 2018 15:49:13 +0100 Subject: [PATCH] another attempt at alpine --- .drone.yml | 1 + Dockerfile | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 43a453f..e3ea2cf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,7 @@ pipeline: docker: image: plugins/docker repo: repo.shimun.net/shimun/seafile + tag: alpine registry: repo.shimun.net storage_path: /drone/.docker secrets: ["docker_username", "docker_password"] diff --git a/Dockerfile b/Dockerfile index 8b1f63a..7c5f6e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx:mainline +FROM nginx:mainline-alpine VOLUME /opt/seafile @@ -8,9 +8,9 @@ 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 \ - && pip install -r /tmp/requirements.txt && apt remove -y python-pip \ - && rm -rf /var/lib/apt/lists/* /tmp/requirements.txt +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 && apk --no-cache del py-pip \ + && rm -f /tmp/requirements.txt COPY conf /opt/seafile/conf COPY conf /etc/seafile