bigbluebutton-Github/bbb-libreoffice/docker/Dockerfile

30 lines
864 B
Docker
Raw Normal View History

FROM openjdk:8-jre
ENV DEBIAN_FRONTEND noninteractive
RUN apt update
2020-07-24 13:42:51 +08:00
ARG user_id
RUN echo "User id = $user_id"
RUN addgroup --system --gid $user_id libreoffice
# We need to ensure that this user id is the same as the user bigbluebutton in the host
RUN adduser --disabled-password --system --disabled-login --shell /sbin/nologin --gid $user_id --uid $user_id libreoffice
RUN apt -y install locales-all fontconfig libxt6 libxrender1
RUN apt -y install libreoffice --no-install-recommends
RUN dpkg-reconfigure fontconfig && fc-cache -f -s -v
VOLUME ["/usr/share/fonts/"]
RUN chown libreoffice /home/libreoffice/
ADD ./bbb-libreoffice-entrypoint.sh /home/libreoffice/
RUN chown -R libreoffice /home/libreoffice/
RUN chmod 700 /home/libreoffice/bbb-libreoffice-entrypoint.sh
USER libreoffice
ENTRYPOINT ["/home/libreoffice/bbb-libreoffice-entrypoint.sh" ]