|
@@ -1,5 +1,5 @@
|
|
|
FROM kfwkfulq.mirror.aliyuncs.com/library/ubuntu:20.10
|
|
|
-LABEL Name=wordtohtml Version=1.0.2
|
|
|
+LABEL Name=wordtohtml Version=1.0.4
|
|
|
EXPOSE 5000
|
|
|
|
|
|
# Install requirements
|
|
@@ -7,9 +7,10 @@ RUN apt update && \
|
|
|
apt install -y libreoffice
|
|
|
|
|
|
WORKDIR /app
|
|
|
-COPY convert /usr/bin/convert
|
|
|
-RUN adduser -u 5678 --disabled-password --gecos "" lyq && chown -R lyq /app
|
|
|
+RUN mkdir -p /opt/wordtohtml
|
|
|
+COPY convert /opt/wordtohtml/convert
|
|
|
+RUN adduser -u 5678 --disabled-password --gecos "" lyq && chown -R lyq /app && chown -R lyq /opt/wordtohtml
|
|
|
USER lyq
|
|
|
|
|
|
VOLUME [ "/app" ]
|
|
|
-CMD ["convert"]
|
|
|
+CMD ["/opt/wordtohtml/convert"]
|