fix: fix get version error (#1044)

* feat: fix get version error

* feat: more safe

* fix
This commit is contained in:
q1anx1
2022-08-21 10:47:36 +08:00
committed by GitHub
parent feec6abd88
commit f3b3376a3c
10 changed files with 59 additions and 16 deletions

View File

@ -19,6 +19,7 @@ RUN apk add curl
RUN apk add ca-certificates && update-ca-certificates
WORKDIR /
COPY --from=BACK /go/src/casdoor/.git/refs/heads .git/refs/heads
COPY --from=BACK /go/src/casdoor/server ./server
COPY --from=BACK /go/src/casdoor/swagger ./swagger
COPY --from=BACK /go/src/casdoor/conf/app.conf ./conf/app.conf
@ -41,6 +42,7 @@ RUN apt update
RUN apt install -y ca-certificates && update-ca-certificates
WORKDIR /
COPY --from=BACK /go/src/casdoor/.git/refs/heads .git/refs/heads
COPY --from=BACK /go/src/casdoor/server ./server
COPY --from=BACK /go/src/casdoor/swagger ./swagger
COPY --from=BACK /go/src/casdoor/docker-entrypoint.sh /docker-entrypoint.sh