FROM kfwkfulq.mirror.aliyuncs.com/library/ubuntu:20.10 as dev LABEL Name=wordtohtml Version=1.0.5 EXPOSE 5000 ENV LANG C.UTF-8 # ENV LANGUAGE en_US.UTF-8 # ENV LC_ALL en_US.UTF-8 # Install requirements RUN apt update && \ apt install -y libreoffice # FROM jianboy/libreoffice:v1.0.5 as prod WORKDIR /app RUN mkdir -p /opt/wordtohtml COPY convert /opt/wordtohtml/convert RUN adduser -u 5678 --disabled-password --gecos "" wordtohtml && chown -R wordtohtml /app && chown -R wordtohtml /opt/wordtohtml USER wordtohtml VOLUME [ "/app" ] CMD ["/opt/wordtohtml/convert"]