2016-11-11 04:54:47 +00:00
|
|
|
FROM seafileorg/base:16.04
|
|
|
|
WORKDIR /opt/seafile
|
|
|
|
|
|
|
|
ENV SEAFILE_VERSION=6.0.5
|
|
|
|
|
|
|
|
RUN mkdir -p /opt/seafile/ && \
|
|
|
|
curl -sSL -o - https://bintray.com/artifact/download/seafile-org/seafile/seafile-server_6.0.5_x86-64.tar.gz \
|
2016-11-12 06:03:52 +00:00
|
|
|
| tar xzf - -C /opt/seafile/ && \
|
|
|
|
ln -sf /opt/seafile/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-latest
|
2016-11-11 04:54:47 +00:00
|
|
|
|
|
|
|
RUN mkdir -p /etc/my_init.d
|
|
|
|
ADD create_data_links.sh /etc/my_init.d/create_data_links.sh
|
|
|
|
|
2016-11-12 07:15:26 +00:00
|
|
|
ADD seafile.nginx.conf /etc/nginx/sites-enabled/seafile.nginx.conf
|
|
|
|
|
2016-11-11 04:54:47 +00:00
|
|
|
CMD ["/sbin/my_init", "--", "bash", "-l"]
|