-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
21 lines (16 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian:bullseye-slim
RUN apt-get update && apt-get install gnupg curl -y && \
curl https://linux-clients.seafile.com/seafile.asc -o /usr/share/keyrings/seafile-keyring.asc && \
echo deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/bullseye/ stable main | tee /etc/apt/sources.list.d/seafile.list && \
apt-get update -y && \
apt-get install -y seafile-cli procps grep && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
WORKDIR /seafile-client
COPY start.sh /seafile-client/start.sh
RUN chmod +x /seafile-client/start.sh && \
useradd -U -d /seafile-client -s /bin/bash seafile && \
usermod -G users seafile && \
chown seafile:seafile -R /seafile-client && \
su - seafile -c "seaf-cli init -d /seafile-client"
CMD ["./start.sh"]