forked from PaddlePaddle/VisualDL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (14 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
21 lines (14 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 && python setup.py bdist_wheel
FROM python:3-alpine
WORKDIR /home/visualdl
COPY --from=builder /home/visualdl/dist/* dist/
RUN apk add --no-cache jpeg-dev && \
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
ENTRYPOINT ["visualdl", "--logdir", "/home/visualdl/log", "--host", "0.0.0.0"]