Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
S2I MkDocs Container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Authoring
Documentation
S2I MkDocs Container
Commits
885e7c7e
Commit
885e7c7e
authored
4 years ago
by
Michal Kolodziejski
Browse files
Options
Downloads
Patches
Plain Diff
Install mkdocs as non-root
parent
b21dd8bd
No related branches found
No related tags found
No related merge requests found
Pipeline
#2123636
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+5
-4
5 additions, 4 deletions
Dockerfile
with
5 additions
and
4 deletions
Dockerfile
+
5
−
4
View file @
885e7c7e
...
...
@@ -32,10 +32,7 @@ USER root
# Install VCS tools to support https://pip.readthedocs.io/en/1.1/requirements.html#requirements-file-format
RUN
yum
install
-y
rh-python36-python-pip git svn
&&
\
yum clean all
&&
\
/opt/rh/rh-python36/root/usr/bin/pip
install
--cache-dir
/root
--upgrade
pip setuptools wheel
&&
\
/opt/rh/rh-python36/root/bin/pip
install
--cache-dir
/opt/app-root/.cache
--prefix
/opt/app-root
\
mkdocs
==
${
MKDOCS_VERSION
}
\
mkdocs-material
==
${
MATERIAL_VERSION
}
/opt/rh/rh-python36/root/usr/bin/pip
install
--cache-dir
/root
--upgrade
pip setuptools wheel
# Move the original assemble script to another file
# and copy our custom assemble script.
...
...
@@ -44,3 +41,7 @@ COPY assemble /usr/libexec/s2i/
# Switch back to the default user.
USER
1001
RUN
/opt/rh/rh-python36/root/bin/pip
install
--cache-dir
/opt/app-root/.cache
--prefix
/opt/app-root
\
mkdocs
==
${
MKDOCS_VERSION
}
\
mkdocs-material
==
${
MATERIAL_VERSION
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment