|
|
@ -23,9 +23,8 @@ WORKDIR /paopao-ce
|
|
|
|
COPY . .
|
|
|
|
COPY . .
|
|
|
|
COPY --from=frontend /web/dist ./web/dist
|
|
|
|
COPY --from=frontend /web/dist ./web/dist
|
|
|
|
ENV GOPROXY=https://goproxy.cn,direct
|
|
|
|
ENV GOPROXY=https://goproxy.cn,direct
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/go-build,id=paopao-ce go mod download
|
|
|
|
RUN --mount=type=cache,target=$GOPATH/go/pkg,id=paopao-ce-gopkg [ $EMBED_UI != yes ] || make buildx TAGS='go_json'
|
|
|
|
RUN [ $EMBED_UI != yes ] || make buildx TAGS='go_json'
|
|
|
|
RUN --mount=type=cache,target=$GOPATH/go/pkg,id=paopao-ce-gopkg [ $EMBED_UI = yes ] || make buildx TAGS='slim embed go_json'
|
|
|
|
RUN [ $EMBED_UI = yes ] || make buildx TAGS='slim embed go_json'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FROM bitbus/paopao-ce-backend-runner:latest
|
|
|
|
FROM bitbus/paopao-ce-backend-runner:latest
|
|
|
|
ARG API_HOST
|
|
|
|
ARG API_HOST
|
|
|
|