1 Star 0 Fork 0

爱生活,爱JAVA/davinci-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
local.Dockerfile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
白菜 提交于 2020-05-15 11:06 +08:00 . fix
FROM alpine:3.9.5 AS build
ARG DAVINCI_ZIP
ADD $DAVINCI_ZIP /
RUN mkdir -p /opt/davinci && unzip $DAVINCI_ZIP -d /opt/davinci \
&& rm -rf $DAVINCI_ZIP \
&& cp -v /opt/davinci/config/application.yml.example /opt/davinci/config/application.yml
# 此dockerfile 用于在本地构建,提前把程序包及phantomjs下载到本地
ADD phantomjs /opt/phantomjs-2.1.1
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
#FROM openjdk:8u242-jdk AS base
FROM selenium/standalone-chrome
LABEL MAINTAINER="edp_support@groups.163.com"
WORKDIR /opt/davinci
COPY --from=build /opt /opt
ENV OPENSSL_CONF=/etc/ssl/
ENV DAVINCI3_HOME /opt/davinci
ENV PHANTOMJS_HOME /opt/phantomjs-2.1.1
ENV SCREENSHOT_PHANTOMJS_PATH=/opt/phantomjs-2.1.1/phantomjs
#ENV SCREENSHOT_DEFAULT_BROWSER=CHROME
ENV SCREENSHOT_TIMEOUT_SECOND=30
#ENV JAVA_OPTS "-agentlib:jdwp=transport=dt_socket,server=y,address=53733,suspend=y"
CMD ["./bin/start-server.sh"]
EXPOSE 8080
#EXPOSE 53733
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/suncf/davinci-docker.git
git@gitee.com:suncf/davinci-docker.git
suncf
davinci-docker
davinci-docker
master

搜索帮助