代码拉取完成,页面将自动刷新
同步操作将从 PaddlePaddle/VisualDL 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM nikolaik/python-nodejs:python3.8-nodejs14 AS builder
WORKDIR /home/visualdl
COPY . .
RUN apt-get update && apt-get -y --no-install-recommends install cmake && rm -rf /var/lib/apt/lists/*
RUN ["pip", "install", "--disable-pip-version-check", "-r", "requirements.txt"]
RUN ["python", "setup.py", "bdist_wheel"]
RUN ["pip", "install", "--disable-pip-version-check", "--find-links=dist", "visualdl"]
WORKDIR /home/visualdl/frontend
ENV SCOPE server
ENV PUBLIC_PATH /paddle/visualdl/demo
ENV TELEMETRY_ID b281676ad3824647971c6fd92d65f642
RUN ["./scripts/install.sh"]
RUN ["./scripts/build.sh"]
FROM node:14-alpine
WORKDIR /home/visualdl
COPY --from=builder /home/visualdl/frontend/output/server.tar.gz /tmp
ENV NODE_ENV production
ENV PING_URL /ping
ENV DEMO true
ENV HOST 0.0.0.0
ENV PORT 8999
RUN apk update && \
apk upgrade && \
apk add --no-cache --virtual .build-deps git && \
tar zxf /tmp/server.tar.gz && \
rm /tmp/server.tar.gz && \
yarn install --no-lockfile && \
yarn cache clean && \
apk del --no-network .build-deps
ENTRYPOINT ["yarn", "start"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。