We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PUID
PGID
Umask
1 parent 83fe17c commit ed6c819Copy full SHA for ed6c819
Dockerfile
@@ -10,6 +10,8 @@ LABEL MAINTAINER="i@nn.ci"
10
VOLUME /opt/alist/data/
11
WORKDIR /opt/alist/
12
COPY --from=builder /app/bin/alist ./
13
-RUN apk add ca-certificates
+COPY entrypoint.sh /entrypoint.sh
14
+RUN apk add ca-certificates bash su-exec
15
+ENV PUID=1000 PGID=1000 UMASK=022
16
EXPOSE 5244
-CMD [ "./alist", "server", "--no-prefix" ]
17
+ENTRYPOINT [ "/entrypoint.sh" ]
entrypoint.sh
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+chown -R ${PUID}:${PGID} /opt/alist/
4
5
+umask ${UMASK}
6
7
+exec su-exec ${PUID}:${PGID} ./alist server --no-prefix
0 commit comments