2021-01-23 11:12:46 +00:00
|
|
|
FROM alpine:3.13 AS get
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
RUN apk add --no-cache wget
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
ENV SEAFILE_SERVER=seafile-server SEAFILE_VERSION=8.0.2
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
RUN cd /tmp && \
|
2021-01-21 01:32:46 +00:00
|
|
|
wget https://download.seadrive.org/seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
|
|
|
tar -zxvf seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz && \
|
|
|
|
rm -f seafile-server_${SEAFILE_VERSION}_x86-64.tar.gz
|
|
|
|
|
2021-01-23 12:26:43 +00:00
|
|
|
FROM ubuntu:bionic
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 12:26:43 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
2021-01-23 11:12:46 +00:00
|
|
|
socat \
|
|
|
|
tzdata \
|
2021-01-23 12:26:43 +00:00
|
|
|
psmisc \
|
|
|
|
net-tools \
|
|
|
|
libmariadb-dev \
|
2021-01-23 11:12:46 +00:00
|
|
|
python3 \
|
2021-01-23 12:26:43 +00:00
|
|
|
python3-click \
|
|
|
|
python3-termcolor \
|
|
|
|
python3-colorlog \
|
|
|
|
python3-pymysql \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-01-23 11:12:46 +00:00
|
|
|
|
|
|
|
ENV SEAFILE_VERSION=8.0.2
|
|
|
|
|
|
|
|
COPY scripts /scripts
|
|
|
|
RUN chmod u+x /scripts/*
|
2021-01-23 12:26:43 +00:00
|
|
|
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
|
|
|
|
|
2021-01-22 21:24:23 +00:00
|
|
|
EXPOSE 8080 8082 8001
|
2021-01-17 23:29:51 +00:00
|
|
|
|
2021-01-23 11:12:46 +00:00
|
|
|
CMD ["/scripts/start.sh"]
|