another attempt at alpine
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user