-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(ci): Add the default user for docker execution #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dezhishen
merged 7 commits into
OpenListTeam:main
from
dezhishen:docker-add-default-user
Aug 12, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
bf9f56a
feat(ci): 增加docker执行的默认用户
dezhishen 10276a8
mod(ci): remove unuse ARG GROUP
dezhishen e9f1752
fix(ci): Remove trailing spaces at the end of lines
dezhishen 27a3675
fix(ci): change the way to copy file
dezhishen 80b5c4e
fix(ci): copy the runsvdir file's for openlist
dezhishen cff8dbd
Merge branch 'docker-add-default-user' of github.com:dezhishen/OpenLi…
dezhishen 66330cd
refactor(ci): remove TARGETPLATFORM
dezhishen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,18 +1,26 @@ | ||
| ARG BASE_IMAGE_TAG=base | ||
| FROM ghcr.io/openlistteam/openlist-base-image:${BASE_IMAGE_TAG} | ||
|
|
||
| LABEL MAINTAINER="OpenList" | ||
| ARG TARGETPLATFORM | ||
| ARG INSTALL_FFMPEG=false | ||
| ARG INSTALL_ARIA2=false | ||
| LABEL MAINTAINER="OpenList" | ||
| ARG USER=openlist | ||
| ARG UID=1001 | ||
| ARG GID=1001 | ||
|
|
||
| WORKDIR /opt/openlist/ | ||
|
|
||
| COPY --chmod=755 /build/${TARGETPLATFORM}/openlist ./ | ||
| COPY --chmod=755 entrypoint.sh /entrypoint.sh | ||
|
|
||
| RUN adduser -u ${UID} -g ${GID} -h /opt/openlist/data -D -s /bin/sh ${USER} \ | ||
dezhishen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| && chown -R ${UID}:${GID} /opt \ | ||
| && chown -R ${UID}:${GID} /entrypoint.sh | ||
|
|
||
| USER ${USER} | ||
| RUN /entrypoint.sh version | ||
|
|
||
| ENV PUID=0 PGID=0 UMASK=022 RUN_ARIA2=${INSTALL_ARIA2} | ||
| ENV UMASK=022 RUN_ARIA2=${INSTALL_ARIA2} | ||
| VOLUME /opt/openlist/data/ | ||
| EXPOSE 5244 5245 | ||
| CMD [ "/entrypoint.sh" ] | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.