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
G
Galvanize
galvanize
python-code-evaluator
Commits
d952c8a9
Commit
d952c8a9
authored
Feb 10, 2021
by
Michael Uranaka
Browse files
removing sudo
parent
90d006a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
Dockerfile
Dockerfile
+16
-2
No files found.
Dockerfile
View file @
d952c8a9
...
...
@@ -17,12 +17,26 @@ RUN mv redis-cli /usr/local/bin/redis-cli
RUN
chown
-R
1001 /app
RUN
chmod
0555 /app/get-job.sh
# Remove sudo
# Remove sudo
RUN
rm
/bin/su
\
/bin/sudo
\
/bin/sudoedit
\
/bin/sudoreplay
&&
\
rm
-rf
/usr/libexec/sudo
/bin/sudoreplay
\
/usr/lib/tmpfiles.d/sudo.conf
\
/etc/pam.d/sudo
*
\
/etc/dnf/protected.d/sudo.conf
\
/usr/bin/cvtsudoers
\
/usr/sbin/visudo
\
/usr/share/man/man1/cvtsudoers.1.gz
\
/usr/share/man/man8/visudo.8.gz
\
&&
rm
-rf
/usr/share/doc/sudo
\
&&
rm
-rf
/usr/share/licenses/sudo
\
&&
rm
-rf
/usr/share/man/man5/sudo
*
\
&&
rm
-rf
/usr/share/man/man8/sudo
*
\
&&
rm
-rf
/usr/libexec/sudo
\
&&
rm
-rf
/var/db/sudo
\
&&
rm
-rf
/etc/sudo
*
# Become the python user.
USER
1001
...
...
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