diff --git a/bolo/Dockerfile b/bolo/Dockerfile new file mode 100644 index 0000000..90dca0b --- /dev/null +++ b/bolo/Dockerfile @@ -0,0 +1,18 @@ +FROM maven:3-jdk-8-alpine as MVN_BUILD + +WORKDIR /opt/bolo/ +ADD . /tmp +RUN cd /tmp && mvn package -DskipTests -Pci --settings settings.xml && mv target/bolo/* /opt/bolo/ \ + && cp -f /tmp/src/main/resources/docker/* /opt/bolo/WEB-INF/classes/ + +FROM openjdk:8-alpine +LABEL maintainer="Liang Ding" + +WORKDIR /opt/bolo/ +COPY --from=MVN_BUILD /opt/bolo/ /opt/bolo/ +RUN apk add --no-cache ca-certificates tzdata + +ENV TZ=Asia/Shanghai +EXPOSE 8080 + +ENTRYPOINT [ "java", "-cp", "WEB-INF/lib/*:WEB-INF/classes", "org.b3log.solo.Starter" ] diff --git a/bolo/settings.xml b/bolo/settings.xml new file mode 100644 index 0000000..3c6b007 --- /dev/null +++ b/bolo/settings.xml @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + nexus-aliyun + *,!jeecg,!jeecg-snapshots + Nexus aliyun + http://maven.aliyun.com/nexus/content/groups/public + + + + + + + + + + + + + +