-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
34 lines (22 loc) · 1.09 KB
/
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
FROM python:3.8-slim-buster AS base
# Keeps Python from generating .pyc files in the container.
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging.
ENV PYTHONUNBUFFERED=1
# Set environment variables.
WORKDIR /app
ENV PYTHONPATH=/app
# Copy docs and install pip documentation requirements.
COPY docs/requirements.txt docs/requirements.txt
RUN ["python3.8", "-m", "pip", "install", "-r", "docs/requirements.txt"]
COPY Interface/react/package.json package.json
# Install nodejs, to use npm
RUN ["apt","update"]
RUN ["apt","install","-y","nodejs", "npm"]
RUN ["npm", "install"]
COPY Interface/react/src Interface/react/src
COPY Interface/react/tsconfig.json Interface/react/tsconfig.json
RUN ["npx", "typedoc", "--out", "docs/html/Interface", "Interface/react/src", "--tsconfig", "Interface/react/tsconfig.json", "--theme", "node_modules/typedoc-dark-theme/bin/default/"]
# Copy the rest of the application.
COPY . .
ENTRYPOINT ["python3.8", "docs/documentation.py", "-ci", "-rs", "utility", "docs", "CameraProcessor/processor", "ProcessorOrchestrator/src", "VideoForwarder/src"]