From ed92050c0f13be098d035f09743d03ef170a4ca1 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 3 Nov 2023 11:28:26 +0800 Subject: [PATCH 1/2] add workdir for docker file --- Dockerfile | 2 ++ docs/index.md | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index fe4c663..19da8d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ RUN apk add --no-cache ca-certificates RUN apk add --no-cache tzdata ENV TZ Asia/Shanghai +WORKDIR /easy-admin + COPY ./easy-admin /easy-admin COPY ./config/settings.demo.yml /config/settings.yml EXPOSE 8000 diff --git a/docs/index.md b/docs/index.md index dfb27e7..7e46b7b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -58,6 +58,12 @@ The front-end and back-end separation authority management system based on Gin + swag init --parseDependency --parseDepth=6 --instanceName admin -o ./docs/admin ``` +# Online swag Document + +``` +http://localhost:8000/swagger/admin/index.html +``` + # Install [Docker Install](https://nicelizhi.github.io/easy-admin/guide/install/docker) From 666c4589e84684a3b1288fcc9858a6162ad73856 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 3 Nov 2023 11:29:25 +0800 Subject: [PATCH 2/2] fix --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19da8d2..d6db8a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,11 @@ WORKDIR /easy-admin COPY ./easy-admin /easy-admin COPY ./config/settings.demo.yml /config/settings.yml EXPOSE 8000 -RUN chmod +x /easy-admin +RUN chmod +x ./easy-admin ENV TINI_VERSION v0.19.0 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini RUN chmod +x /tini ENTRYPOINT ["/tini", "--"] -CMD ["/easy-admin","server","-c", "/config/settings.yml"] \ No newline at end of file +CMD ["./easy-admin","server","-c", "/config/settings.yml"] \ No newline at end of file