From a71e58a496c4368d642f5d3df1c6240f6f09580e Mon Sep 17 00:00:00 2001 From: ModerRAS Date: Sun, 2 Apr 2023 03:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9E=84=E5=BB=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +---------- Jenkinsfile | 1 + 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 72305a9..f6ff4ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,2 @@ -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 --from=build /home/logseq/graph/output /usr/share/nginx/html \ No newline at end of file +COPY ./www /usr/share/nginx/html \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 8db990b..e458088 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ 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 .' } }