-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (22 loc) · 1.08 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
# Using the UBI8/UBI-MINIMAL as the base image
FROM registry.access.redhat.com/ubi8/ubi-minimal@sha256:574f201d7ed185a9932c91cef5d397f5298dff9df08bc2ebb266c6d1e6284cd1
# The container image will have the NodeJS version NODEJS_VERSION
ENV NODEJS_VERSION=14
# All the build will be done in the /build directory
WORKDIR /build
COPY requirements.txt /build/requirements.txt
# Using the microdnf package manager to install git, nodejs and python
RUN microdnf update
RUN microdnf install git -y
RUN echo -e "[nodejs]\nname=nodejs\nstream=${NODEJS_VERSION}\nprofiles=\nstate=enabled\n" > /etc/dnf/modules.d/nodejs.module
RUN microdnf install nodejs && microdnf remove nodejs-full-i18n nodejs-docs
RUN microdnf install python3.9 -y
RUN microdnf clean all
# Using python pip package manager to install the mkdocs libraries
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt
# Using the npm package manager to install the cspell checker
RUN npm install -g cspell
# The mkdocs from a git repository will be cloned into the /docs directory
WORKDIR /docs
CMD ["/bin/bash"]