mirror of
https://github.com/dockersrc/almalinux
synced 2024-11-21 17:23:05 -05:00
🗃️ Committing everything that changed 🗃️
Dockerfile Dockerfile.8 Dockerfile.9
This commit is contained in:
parent
fe856ea46b
commit
87ce11bdac
@ -68,7 +68,7 @@ WORKDIR /root
|
|||||||
|
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
echo "Setting up prerequisites"; \
|
echo "Setting up prerequisites"; \
|
||||||
yum makecache && yum install -yy bash; \\
|
yum makecache && yum install -yy bash; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
||||||
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
||||||
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
||||||
|
@ -68,7 +68,7 @@ WORKDIR /root
|
|||||||
|
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
echo "Setting up prerequisites"; \
|
echo "Setting up prerequisites"; \
|
||||||
yum makecache && yum install -yy bash; \\
|
yum makecache && yum install -yy bash; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
||||||
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
||||||
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
||||||
|
@ -68,7 +68,7 @@ WORKDIR /root
|
|||||||
|
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
echo "Setting up prerequisites"; \
|
echo "Setting up prerequisites"; \
|
||||||
yum makecache && yum install -yy bash; \\
|
yum makecache && yum install -yy bash; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
||||||
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
[ -x "$BASH_CMD" ] && { rm -rf "/bin/sh" || true; } && ln -sf "$BASH_CMD" "/bin/sh" || true; \
|
||||||
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
[ -n "$BASH_CMD" ] && sed -i 's|root:x:.*|root:x:0:0:root:/root:'$BASH_CMD'|g' "/etc/passwd" || true
|
||||||
|
Loading…
Reference in New Issue
Block a user