-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
… pr #2818) Co-authored-by: DDSRem <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ LABEL MAINTAINER="[email protected]" | |
VOLUME /opt/alist/data/ | ||
WORKDIR /opt/alist/ | ||
COPY --from=builder /app/bin/alist ./ | ||
RUN apk add ca-certificates | ||
COPY entrypoint.sh /entrypoint.sh | ||
This comment has been minimized.
Sorry, something went wrong. |
||
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
chown -R ${PUID}:${PGID} /opt/alist/ | ||
|
||
umask ${UMASK} | ||
|
||
exec su-exec ${PUID}:${PGID} ./alist server --no-prefix |
没有给执行权限,部署后会报
Permission Denied
。后面再加行
RUN chmod +x /entrypoint.sh
。