mirror of
https://github.com/dockersrc/almalinux
synced 2024-11-23 23:23:04 -05:00
🗃️ Committing everything that changed 🗃️
Dockerfile Dockerfile.8 Dockerfile.9
This commit is contained in:
parent
9f46cc002a
commit
4c4d8c1d6c
@ -68,9 +68,13 @@ 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)"; \
|
||||||
|
[ -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
|
||||||
|
|
||||||
ENV SHELL="/bin/bash"
|
ENV SHELL="/bin/bash"
|
||||||
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
||||||
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
||||||
@ -111,15 +115,12 @@ RUN echo "Updating system files "; \
|
|||||||
touch "/etc/profile" "/root/.profile"; \
|
touch "/etc/profile" "/root/.profile"; \
|
||||||
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
||||||
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
|
||||||
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
||||||
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
||||||
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
||||||
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
||||||
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
||||||
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
||||||
[ -f "$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; \
|
|
||||||
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
||||||
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
||||||
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
||||||
|
@ -68,9 +68,13 @@ 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)"; \
|
||||||
|
[ -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
|
||||||
|
|
||||||
ENV SHELL="/bin/bash"
|
ENV SHELL="/bin/bash"
|
||||||
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
||||||
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
||||||
@ -111,15 +115,12 @@ RUN echo "Updating system files "; \
|
|||||||
touch "/etc/profile" "/root/.profile"; \
|
touch "/etc/profile" "/root/.profile"; \
|
||||||
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
||||||
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
|
||||||
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
||||||
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
||||||
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
||||||
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
||||||
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
||||||
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
||||||
[ -f "$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; \
|
|
||||||
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
||||||
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
||||||
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
||||||
|
@ -68,9 +68,13 @@ 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)"; \
|
||||||
|
[ -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
|
||||||
|
|
||||||
ENV SHELL="/bin/bash"
|
ENV SHELL="/bin/bash"
|
||||||
|
SHELL [ "/bin/bash", "-c" ]
|
||||||
|
|
||||||
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
COPY ./rootfs/usr/local/bin/pkmgr /usr/local/bin/pkmgr
|
||||||
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
COPY --from=gosu /usr/local/bin/gosu /usr/local/bin/gosu
|
||||||
@ -111,15 +115,12 @@ RUN echo "Updating system files "; \
|
|||||||
touch "/etc/profile" "/root/.profile"; \
|
touch "/etc/profile" "/root/.profile"; \
|
||||||
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
echo 'hosts: files dns' >"/etc/nsswitch.conf"; \
|
||||||
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
[ "$PHP_VERSION" = "system" ] && PHP_VERSION="php" || true; \
|
||||||
BASH_CMD="$(command -v bash 2>/dev/null|| true)"; \
|
|
||||||
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
PHP_BIN="$(command -v ${PHP_VERSION} 2>/dev/null || true)"; \
|
||||||
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
PHP_FPM="$(ls /usr/*bin/php*fpm* 2>/dev/null || true)"; \
|
||||||
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
pip_bin="$(command -v python3 2>/dev/null || command -v python2 2>/dev/null || command -v python 2>/dev/null || true)"; \
|
||||||
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
py_version="$(command $pip_bin --version | sed 's|[pP]ython ||g' | awk -F '.' '{print $1$2}' | grep '[0-9]' || true)"; \
|
||||||
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
[ "$py_version" -gt "310" ] && pip_opts="--break-system-packages " || pip_opts=""; \
|
||||||
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
if [ -n "$pip_bin" ];then $pip_bin -m pip install certbot-dns-rfc2136 certbot-dns-duckdns certbot-dns-cloudflare certbot-nginx $pip_opts || true;fi; \
|
||||||
[ -f "$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; \
|
|
||||||
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
[ -f "/usr/share/zoneinfo/${TZ}" ] && ln -sf "/usr/share/zoneinfo/${TZ}" "/etc/localtime" || true; \
|
||||||
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
[ -n "$PHP_BIN" ] && [ -z "$(command -v php 2>/dev/null)" ] && ln -sf "$PHP_BIN" "/usr/bin/php" 2>/dev/null || true; \
|
||||||
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
[ -n "$PHP_FPM" ] && [ -z "$(command -v php-fpm 2>/dev/null)" ] && ln -sf "$PHP_FPM" "/usr/bin/php-fpm" 2>/dev/null || true; \
|
||||||
|
Loading…
Reference in New Issue
Block a user