-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile.docs
44 lines (28 loc) · 989 Bytes
/
Dockerfile.docs
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
## Docker image used to build and host the documentation.
FROM --platform=${BUILDPLATFORM} photon:5.0
## --------------------------------------
## Multi-platform support
## --------------------------------------
ARG TARGETOS
ARG TARGETARCH
## --------------------------------------
## Install Python3
## --------------------------------------
RUN tdnf --assumeyes install python3 python3-pip
## --------------------------------------
## Configure the working directory
## --------------------------------------
WORKDIR /docs
## --------------------------------------
## Cache the requirements
## --------------------------------------
COPY ./docs/requirements.txt /docs/
RUN pip3 install -r /docs/requirements.txt
## --------------------------------------
## Run the web server
## --------------------------------------
# Expose MkDocs development server port
EXPOSE 8000
# Start development server by default
ENTRYPOINT ["mkdocs"]
CMD ["serve", "--dev-addr=0.0.0.0:8000"]