Dockerfile 496 B

12345678910111213141516171819
  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 en_US.UTF-8
  5. # Install requirements
  6. RUN apt update && \
  7. apt install -y libreoffice
  8. # FROM jianboy/libreoffice:v1.0.5 as prod
  9. WORKDIR /app
  10. RUN mkdir -p /opt/wordtohtml
  11. COPY convert /opt/wordtohtml/convert
  12. RUN adduser -u 5678 --disabled-password --gecos "" lyq && chown -R lyq /app && chown -R lyq /opt/wordtohtml
  13. USER lyq
  14. VOLUME [ "/app" ]
  15. CMD ["/opt/wordtohtml/convert"]