-
-
Notifications
You must be signed in to change notification settings - Fork 325
/
Copy pathDockerfile
49 lines (40 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM python:3.9
WORKDIR /app/
# Install NodeJS
# --------------
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -yq nodejs build-essential
RUN npm install -g [email protected]
# Create Python Venv
# ------------------
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --upgrade pip
# Install IDOM
# ------------
ADD requirements ./requirements
ADD src ./src
ADD scripts ./scripts
ADD setup.py ./
ADD setup.cfg ./
ADD MANIFEST.in ./
ADD README.md ./
RUN pip install -e .[all]
# Add License
# -----------
Add LICENSE /app/
# Build the Docs
# --------------
ADD docs/__init__.py ./docs/
ADD docs/app.py ./docs/
ADD docs/examples.py ./docs/
ADD docs/source ./docs/source
RUN pip install -r requirements/build-docs.txt
RUN sphinx-build -W -b html docs/source docs/build
# Define Entrypoint
# -----------------
ENV PORT 5000
ENV IDOM_DEBUG_MODE=1
ENV IDOM_CHECK_VDOM_SPEC=0
CMD python scripts/run_docs.py