mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
Co-authored-by: DDSRem <1448139087@qq.com>
This commit is contained in:
parent
83fe17c6ec
commit
ed6c8194a7
@ -10,6 +10,8 @@ LABEL MAINTAINER="i@nn.ci"
|
||||
VOLUME /opt/alist/data/
|
||||
WORKDIR /opt/alist/
|
||||
COPY --from=builder /app/bin/alist ./
|
||||
RUN apk add ca-certificates
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN apk add ca-certificates bash su-exec
|
||||
ENV PUID=1000 PGID=1000 UMASK=022
|
||||
EXPOSE 5244
|
||||
CMD [ "./alist", "server", "--no-prefix" ]
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown -R ${PUID}:${PGID} /opt/alist/
|
||||
|
||||
umask ${UMASK}
|
||||
|
||||
exec su-exec ${PUID}:${PGID} ./alist server --no-prefix
|
Loading…
x
Reference in New Issue
Block a user