Dockerfile 730 字节
Newer Older
P
Peter Pan 已提交
1 2 3 4 5 6
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/*
7
RUN pip install --disable-pip-version-check -r requirements.txt && python setup.py bdist_wheel
8 9 10 11 12


FROM python:3-alpine

WORKDIR /home/visualdl
P
Peter Pan 已提交
13
COPY --from=builder /home/visualdl/dist/* dist/
14

P
Peter Pan 已提交
15
RUN apk add --no-cache jpeg-dev libstdc++ && \
16 17 18 19
    apk add --no-cache --virtual .build-deps build-base linux-headers zlib-dev && \
    pip install --disable-pip-version-check --find-links=dist visualdl && \
    apk del --no-network .build-deps && \
    rm -rf dist
P
Peter Pan 已提交
20

P
Peter Pan 已提交
21
ENTRYPOINT ["visualdl", "--logdir", "/home/visualdl/log", "--host", "0.0.0.0"]