stirling-pdf / Dockerfile
krin002's picture
Update Dockerfile
bf6b51a verified
raw
history blame contribute delete
385 Bytes
# 使用现有的镜像
FROM stirlingtools/stirling-pdf:latest
# 设置工作目录
WORKDIR /app
# 设置卷(volumes)
# 将主机目录挂载到容器中
# VOLUME ["/usr/share/tessdata", "/configs"]
# 设置环境变量
ENV DOCKER_ENABLE_SECURITY=false
ENV INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true
ENV LANGS=zh_CN
# 设置权限
RUN chmod -R 777 /app
# 暴露端口
EXPOSE 8080