Dockerfile 578 B

123456789101112131415161718192021
  1. FROM kfwkfulq.mirror.aliyuncs.com/library/ubuntu:20.10 as dev
  2. LABEL Name=wordtohtml Version=1.0.5
  3. EXPOSE 5000
  4. ENV LANG C.UTF-8
  5. # ENV LANGUAGE en_US.UTF-8
  6. # ENV LC_ALL en_US.UTF-8
  7. # Install requirements
  8. RUN apt update && \
  9. apt install -y libreoffice
  10. # FROM jianboy/libreoffice:v1.0.5 as prod
  11. WORKDIR /app
  12. RUN mkdir -p /opt/wordtohtml
  13. COPY convert /opt/wordtohtml/convert
  14. RUN adduser -u 5678 --disabled-password --gecos "" wordtohtml && chown -R wordtohtml /app && chown -R wordtohtml /opt/wordtohtml
  15. USER wordtohtml
  16. VOLUME [ "/app" ]
  17. CMD ["/opt/wordtohtml/convert"]