-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
sync source code
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.ts linguist-language=go | ||
*.js linguist-language=go | ||
*.css linguist-language=go | ||
*.vue linguist-language=go | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# build frontend | ||
FROM node:19-alpine as frontend | ||
ARG API_HOST | ||
ARG USE_API_HOST=yes | ||
ARG EMBED_UI=yes | ||
ARG USE_DIST=no | ||
WORKDIR /web | ||
COPY web/ ./ | ||
RUN [ $EMBED_UI != yes ] || [ $USE_API_HOST != yes ] || echo "VITE_HOST='$API_HOST'">.env.local | ||
RUN [ $EMBED_UI != yes ] || [ $USE_DIST != no ] || (yarn && yarn build) | ||
RUN [ $EMBED_UI = yes ] || mkdir dist || echo "" | ||
|
||
# build backend | ||
FROM bitbus/paopao-ce-backend-builder:latest AS backend | ||
ARG API_HOST | ||
ARG USE_API_HOST=yes | ||
ARG EMBED_UI=yes | ||
ARG USE_DIST=no | ||
|
||
WORKDIR /paopao-ce | ||
COPY . . | ||
COPY --from=frontend /web/dist ./web/dist | ||
ENV GOPROXY=https://goproxy.cn,direct | ||
RUN --mount=type=cache,target=$GOPATH/go/pkg,id=paopao-ce-gopkg [ $EMBED_UI != yes ] || make buildx TAGS='go_json migration' | ||
RUN --mount=type=cache,target=$GOPATH/go/pkg,id=paopao-ce-gopkg [ $EMBED_UI = yes ] || make buildx TAGS='slim embed go_json migration' | ||
|
||
FROM bitbus/paopao-ce-allinone-runner:latest | ||
ARG API_HOST | ||
ARG USE_API_HOST=yes | ||
ARG EMBED_UI=yes | ||
ARG USE_DIST=no | ||
ENV TZ=Asia/Shanghai | ||
|
||
WORKDIR /app | ||
COPY --from=backend /paopao-ce/release/paopao . |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.