adapt to alpine

This commit is contained in:
shim_ 2018-11-10 16:28:01 +01:00
parent f0a43458e3
commit 5e5ee7f181

View File

@ -1,4 +1,4 @@
FROM nginx:mainline-alpine FROM frolvlad/alpine-glibc
VOLUME /opt/seafile VOLUME /opt/seafile
@ -8,9 +8,11 @@ ENV SEAF=/opt/seafile
COPY requirements.txt /tmp/requirements.txt COPY requirements.txt /tmp/requirements.txt
RUN apk --no-cache add py-pip sqlite-dev py-mysqldb py-pillow curl bash openssl-dev libevent libc6-compat \ RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories \
&& apk --no-cache add py-pip sqlite-dev py-mysqldb py-pillow py-setuptools sqlite curl bash openssl-dev libevent libselinux nginx \
&& pip install -r /tmp/requirements.txt && apk --no-cache del py-pip \ && pip install -r /tmp/requirements.txt && apk --no-cache del py-pip \
&& rm -f /tmp/requirements.txt && rm -f /tmp/requirements.txt \
&& mkdir -p /run/nginx
COPY conf /opt/seafile/conf COPY conf /opt/seafile/conf
COPY conf /etc/seafile COPY conf /etc/seafile