mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
ci: migrate to github actions
This commit is contained in:
parent
35a4379b67
commit
47578e02e3
6 changed files with 76 additions and 100 deletions
27
Dockerfile
27
Dockerfile
|
|
@ -7,31 +7,4 @@ EXPOSE 80
|
|||
|
||||
COPY filebrowser /filebrowser
|
||||
|
||||
# Create appuser.
|
||||
ENV USER=root
|
||||
ENV GROUP=root
|
||||
ENV UID=0
|
||||
ENV GID=0
|
||||
ENV UMASK=022
|
||||
|
||||
RUN if [ "$GID" -ne 0 ]; then \
|
||||
addgroup \
|
||||
-g "${GID}" \
|
||||
"${GROUP}" ; \
|
||||
fi;
|
||||
|
||||
RUN adduser \
|
||||
-g "" \
|
||||
-D \
|
||||
-G "${GROUP}" \
|
||||
-H \
|
||||
-h "/nonexistent" \
|
||||
-s "/sbin/nologin" \
|
||||
-u "${UID}" \
|
||||
"${USER}"
|
||||
|
||||
USER ${USER}:${GROUP}
|
||||
|
||||
RUN umask ${UMASK}
|
||||
|
||||
ENTRYPOINT [ "/filebrowser" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue