代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Wayne 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# requiring Docker 17.05 or higher on the daemon and client
# see https://docs.docker.com/develop/develop-images/multistage-build/
# BUILD COMMAND :
# docker --build-arg RELEASE_VERSION=v1.0.0 -t infra/wayne:v1.0.0 .
# build ui
FROM 360cloud/wayne-ui-builder:v1.0.0 as frontend
ARG RAVEN_DSN
COPY src/frontend /workspace
RUN sed -i "s~__ravenDsn__~${RAVEN_DSN}~g" /workspace/src/environments/environment.prod.ts
RUN cd /workspace && \
npm config set registry https://registry.npm.taobao.org && \
npm install && \
npm run build
# build server
FROM 360cloud/wayne-server-builder:v1.0.0 as backend
COPY src/vendor /go/src/github.com/Qihoo360/wayne/src/vendor
COPY src/backend /go/src/github.com/Qihoo360/wayne/src/backend
RUN rm -rf /go/src/github.com/Qihoo360/wayne/src/backend/static
COPY --from=frontend /workspace/dist/ /go/src/github.com/Qihoo360/wayne/src/backend/static/
COPY --from=frontend /workspace/dist/index.html /go/src/github.com/Qihoo360/wayne/src/backend/views/
RUN cd /go/src/github.com/Qihoo360/wayne/src/backend && bee generate docs && bee pack -o /_build
# build release image
FROM centos:7
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
COPY --from=backend /_build/backend.tar.gz /opt/wayne/
WORKDIR /opt/wayne/
RUN tar -xzvf backend.tar.gz
CMD ["./backend"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。