25 lines
704 B
Docker
25 lines
704 B
Docker
FROM frolvlad/alpine-glibc
|
|
ENV SEAF=/opt/seafile
|
|
|
|
RUN apk add --no-cache py-pip sqlite-dev py-mysqldb py-pillow curl bash openssl-dev libevent
|
|
|
|
COPY requirements.txt /tmp/requirements.txt
|
|
|
|
RUN pip install -r /tmp/requirements.txt
|
|
|
|
COPY conf $SEAF/
|
|
COPY scripts/upgrade.py /usr/local/sbin/upgrade
|
|
COPY scripts/seafile-server.sh /sbin/seafile-server
|
|
|
|
RUN ulimit -n 30000 && mkdir -p $SEAF/pids && rm /tmp/requirements.txt && \
|
|
chmod +x /usr/local/sbin/upgrade /sbin/seafile-server
|
|
|
|
VOLUME /opt/seafile
|
|
|
|
EXPOSE 80 10001 12001 8000 8080 8082
|
|
|
|
# Baseimage init process
|
|
ENTRYPOINT ["/sbin/seafile-server"]
|
|
#Default to run options include: run, run-upgrade, upgrade, stop, stop-upgrade
|
|
CMD ["run-upgrade"]
|