FROM filebrowser/filebrowser as fb

FROM alpine:latest

COPY --from=fb /filebrowser /opt/app/filebrowser

RUN apk --update add ca-certificates bash \
    && adduser -h /opt/app -D app

COPY entrypoint /opt/app/entrypoint
RUN chmod a+x /opt/app/entrypoint

VOLUME /srv
EXPOSE 4000
USER app
WORKDIR /opt/app


ENTRYPOINT [ "/opt/app/entrypoint" ]
