diff --git a/Dockerfile b/Dockerfile index f6ff4ed..72305a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,11 @@ +FROM ghcr.io/pengx17/logseq-publish as build +WORKDIR /home/logseq +ENV LOGSEQ_SRC=/home/logseq/graph +ENV LOGSEQ_DEST=output +ENV LOGSEQ_IS_TRACE=false +ENV LOGSEQ_THEME=dark +COPY . /home/logseq/graph +RUN bash entrypoint.sh + FROM nginx -COPY ./www /usr/share/nginx/html \ No newline at end of file +COPY --from=build /home/logseq/graph/output /usr/share/nginx/html \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index e458088..8db990b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,6 @@ pipeline { version = "1.0.${env.BUILD_NUMBER}" } steps { - sh 'docker run -d -i --name LogSeqPublishContainer --rm -v $PWD:/home/logseq/graph -w /home/logseq ghcr.io/unickcheng/logseq-publish:latest' sh 'docker build --no-cache -t registry.miaostay.com/kotadoc -f Dockerfile .' } }