1 Star 0 Fork 25

secosun/VisualDL

forked from PaddlePaddle/VisualDL 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile.demo 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
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"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/secosun/VisualDL.git
git@gitee.com:secosun/VisualDL.git
secosun
VisualDL
VisualDL
develop

搜索帮助