Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #28

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#FROM maven:3.6.1-jdk-8-alpine AS build
# https://github.com/nekolr/maven-image/tree/master/3.6.1-jdk-8
FROM nekolr/maven:3.6.1 AS build
FROM maven:3.6-jdk-11 as builder

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app
WORKDIR /app

COPY . .

Expand All @@ -13,8 +12,8 @@ RUN mvn clean package

FROM openjdk:8-jdk-alpine

COPY --from=build /usr/src/app/spider-flow-web/target/spider-flow.jar .
COPY --from=build /app/spider-flow-web/target/spider-flow.jar .

EXPOSE 8088

CMD java -jar spider-flow.jar
CMD java -jar spider-flow.jar
6 changes: 3 additions & 3 deletions spider-flow-web/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ spring.mvc.favicon.enabled=false

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=123456789
spring.datasource.url=jdbc:mysql://localhost:3306/spiderflow?useSSL=false&useUnicode=true&characterEncoding=UTF8&autoReconnect=true
spring.datasource.password=kong@1108yuan
spring.datasource.url=jdbc:mysql://sh-cynosdbmysql-grp-7cwwsldg.sql.tencentcdb.com:24252/spiderflow?useSSL=false&useUnicode=true&characterEncoding=UTF8&autoReconnect=true

#JavaMailSender 邮件发送的配置
spring.mail.protocol=smtp
Expand Down Expand Up @@ -60,4 +60,4 @@ selenium.driver.firefox=E:/driver/geckodriver.exe
spider.notice.subject=spider-flow流程通知
spider.notice.content.start=流程开始执行:{name},开始时间:{currentDate}
spider.notice.content.end=流程执行完毕:{name},结束时间:{currentDate}
spider.notice.content.exception=流程发生异常:{name},异常时间:{currentDate}
spider.notice.content.exception=流程发生异常:{name},异常时间:{currentDate}