Fix formatting
Some checks failed
Build and publish Docker image / build-and-push (push) Has been cancelled
Some checks failed
Build and publish Docker image / build-and-push (push) Has been cancelled
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,7 +1,7 @@
|
||||
FROM rockylinux/rockylinux:9
|
||||
|
||||
RUN dnf update -y
|
||||
RUN dnf install -y \
|
||||
RUN dnf update -y && \
|
||||
dnf install -y \
|
||||
iputils \
|
||||
iproute \
|
||||
iperf3 \
|
||||
@@ -33,15 +33,18 @@ RUN dnf install -y \
|
||||
lsof \
|
||||
openssh-clients \
|
||||
nodejs \
|
||||
rsync \
|
||||
npm
|
||||
RUN dnf group install -y "Development Tools" && \
|
||||
dnf clean all && \
|
||||
case "$(uname -m)" in \
|
||||
x86_64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" -O /usr/local/bin/yq ;; \
|
||||
aarch64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64" -O /usr/local/bin/yq ;; \
|
||||
npm && \
|
||||
dnf group install -y "Development Tools" && \
|
||||
dnf clean all
|
||||
|
||||
RUN set -e && \
|
||||
ARCH=$(uname -m) && \
|
||||
case "$ARCH" in \
|
||||
x86_64) YQ_ARCH="amd64" ;; \
|
||||
aarch64) YQ_ARCH="arm64" ;; \
|
||||
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
||||
esac && \
|
||||
wget "https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_${YQ_ARCH}" -O /usr/local/bin/yq && \
|
||||
chmod +x /usr/local/bin/yq && \
|
||||
echo "alias ll='ls -l --color=auto'" >> /root/.bashrc && \
|
||||
echo "alias ls='ls --color=auto'" >> /root/.bashrc
|
||||
|
||||
Reference in New Issue
Block a user