another attempt at alpine
This commit is contained in:
parent
6fb12158b0
commit
f0a43458e3
@ -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"]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user