1 Star 0 Fork 0

爱生活,爱JAVA/davinci-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
pengjunzhen 提交于 2020-09-10 16:24 +08:00 . fix: unzip no work, replace with tar -xf
FROM openjdk:8u242-jdk AS base
LABEL MAINTAINER="edp_support@groups.163.com"
ARG DAVINCI_ZIP=davinci-assembly_3.0.1-0.3.1-SNAPSHOT-dist-beta.9.zip
RUN cd / \
&& mkdir -p /opt/davinci \
&& wget https://github.com/edp963/davinci/releases/download/v0.3.0-beta.9/$DAVINCI_ZIP \
&& tar -xf $DAVINCI_ZIP -d /opt/davinci\
&& rm -rf $DAVINCI_ZIP \
&& cp -v /opt/davinci/config/application.yml.example /opt/davinci/config/application.yml
RUN mkdir -p /opt/phantomjs-2.1.1 \
&& wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& tar -xf phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& rm -rf phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /opt/phantomjs-2.1.1/phantomjs \
&& rm -rf phantomjs-2.1.1-linux-x86_64
ADD bin/docker-entrypoint.sh /opt/davinci/bin/docker-entrypoint.sh
RUN chmod +x /opt/davinci/bin/docker-entrypoint.sh \
&& chmod +x /opt/phantomjs-2.1.1/phantomjs
ENV DAVINCI3_HOME /opt/davinci
ENV PHANTOMJS_HOME /opt/phantomjs-2.1.1
ENV SCREENSHOT_PHANTOMJS_PATH=/opt/phantomjs-2.1.1/phantomjs
ENV OPENSSL_CONF=/etc/ssl/
WORKDIR /opt/davinci
CMD ["./bin/start-server.sh"]
EXPOSE 8080
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/suncf/davinci-docker.git
git@gitee.com:suncf/davinci-docker.git
suncf
davinci-docker
davinci-docker
master

搜索帮助