Dockerfile 425 B

12345678910111213141516
  1. FROM kfwkfulq.mirror.aliyuncs.com/library/ubuntu:20.10
  2. LABEL Name=wordtohtml Version=1.0.4
  3. EXPOSE 5000
  4. # Install requirements
  5. RUN apt update && \
  6. apt install -y libreoffice
  7. WORKDIR /app
  8. RUN mkdir -p /opt/wordtohtml
  9. COPY convert /opt/wordtohtml/convert
  10. RUN adduser -u 5678 --disabled-password --gecos "" lyq && chown -R lyq /app && chown -R lyq /opt/wordtohtml
  11. USER lyq
  12. VOLUME [ "/app" ]
  13. CMD ["/opt/wordtohtml/convert"]