UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
DIAT
AAP Python
Commits
f3360583
Commit
f3360583
authored
Jun 30, 2021
by
WingKwan Lau
Browse files
Update Dockerfile
parent
d5c653c4
Pipeline
#341778
passed with stages
in 13 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Dockerfile
Dockerfile
+2
-8
No files found.
Dockerfile
View file @
f3360583
...
@@ -39,16 +39,10 @@ RUN INSTALL_PKGS="vim-enhanced rsync iputils bind-utils git python38 python38-de
...
@@ -39,16 +39,10 @@ RUN INSTALL_PKGS="vim-enhanced rsync iputils bind-utils git python38 python38-de
rpm
-V
$INSTALL_PKGS
&&
\
rpm
-V
$INSTALL_PKGS
&&
\
yum
-y
clean all
--enablerepo
=
"*"
yum
-y
clean all
--enablerepo
=
"*"
# - Create a Python virtual environment for use by any application to avoid
# - Create a Python virtual environment for use by any application to avoid potential conflicts with Python packages
# potential conflicts with Python packages preinstalled in the main Python
# preinstalled in the main Python installation.
# installation.
# - In order to drop the root user, we have to make some directories world
# writable as multi-tenant Kubernetes clusters' default security model
# should run the container under a random UID.
# - For any python applications use this default user
RUN
python
$PYTHON_VERSION
-m
venv
${
APP_ROOT
}
&&
/usr/bin/py-enable
RUN
python
$PYTHON_VERSION
-m
venv
${
APP_ROOT
}
&&
/usr/bin/py-enable
# Set up container user and adjust permissions to run in OpenShift environment
# Set up container user and adjust permissions to run in OpenShift environment
WORKDIR
${HOME}
WORKDIR
${HOME}
RUN
useradd
-u
1001
-r
-g
0
-d
${
HOME
}
-s
/sbin/nologin
\
RUN
useradd
-u
1001
-r
-g
0
-d
${
HOME
}
-s
/sbin/nologin
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment