init
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
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"]
|
Reference in New Issue
Block a user