ci: migrate to github actions

This commit is contained in:
Oleg Lobanov 2021-03-04 01:21:05 +01:00
parent 35a4379b67
commit 47578e02e3
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
6 changed files with 76 additions and 100 deletions

View file

@ -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" ]