代码拉取完成,页面将自动刷新
同步操作将从 openEuler/PilotGo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM m.daocloud.io/docker.io/library/node:20-alpine as ui
RUN npm config set registry https://registry.npmmirror.com/ && yarn config set registry https://registry.npmmirror.com/
COPY frontend/package.json frontend/yarn.lock frontend/
RUN yarn --cwd frontend install --network-timeout 1000000
COPY frontend frontend
RUN yarn --cwd frontend build
####################################################################################################
FROM m.daocloud.io/docker.io/library/golang:1.21-alpine3.18 as builder
ARG version_path="/out/backend/pilotgo/"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# RUN apk update && apk add --no-cache \
# git \
# make \
# ca-certificates \
# wget \
# curl \
# gcc \
# bash \
# build-base
WORKDIR /PilotGo
COPY . .
COPY --from=ui /frontend/dist/assets ./cmd/server/app/resource/assets
COPY --from=ui /frontend/dist/index.html ./cmd/server/app/resource/index.html
COPY --from=ui /frontend/dist/pilotgo.ico ./cmd/server/app/resource/pilotgo.ico
RUN GOWORK=off GO111MODULE=on go build -mod=vendor -o ${version_path}/server/pilotgo-server -tags="production" ./cmd/server/main.go
RUN chmod a+x ${version_path}/server/pilotgo-server
####################################################################################################
# # FROM scratch as pilotgo-server
FROM m.daocloud.io/docker.io/library/alpine:3.16.2 as pilotgo-server
EXPOSE 8888 8889
WORKDIR /home/pilotgo
COPY --from=builder /out/backend/pilotgo/server/pilotgo-server pilotgo-server
COPY --from=builder /PilotGo/pkg/config_server.yaml.templete config_server.yaml
COPY --from=builder /PilotGo/pkg/user.xlsx.templete user.xlsx
CMD [ "./pilotgo-server" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。