2021-03-03 12:46:22 +00:00
|
|
|
FROM alpine:latest
|
2019-05-11 22:02:37 +00:00
|
|
|
RUN apk --update add ca-certificates
|
2019-12-03 05:59:37 +00:00
|
|
|
RUN apk --update add mailcap
|
2018-06-06 20:02:00 +00:00
|
|
|
|
|
|
|
VOLUME /srv
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
COPY filebrowser /filebrowser
|
|
|
|
|
2021-03-03 12:46:22 +00:00
|
|
|
# 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" ]
|