-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash.docker
31 lines (22 loc) · 1.5 KB
/
bash.docker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## REGISTRY CONFIGURATION ######################################################
ARG REGISTRY="ghcr.io"
## FINAL IMAGE #################################################################
FROM ${REGISTRY}/essentialkaos/oraclelinux:8
ARG SHELLCHECK_VERSION="0.10.0"
ARG HADOLINT_VERSION="2.12.0"
ENV CODESPACES=true
# hadolint ignore=DL3031,DL3041
RUN dnf -y -q install https://pkgs.kaos.st/kaos-repo-latest.el8.noarch.rpm && \
dnf -y -q install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
sed -i 's/gpgcheck=1/gpgcheck=1\nmodule_hotfixes=1/g' /etc/yum.repos.d/epel.repo && \
dnf -y install make wget git xz perfecto zsh && \
wget https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION}/shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz && \
tar xf shellcheck-v${SHELLCHECK_VERSION}.linux.x86_64.tar.xz && \
mv shellcheck-v${SHELLCHECK_VERSION}/shellcheck /usr/bin/ && rm -rf shellcheck-v${SHELLCHECK_VERSION} && \
curl https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-x86_64 -o /usr/bin/hadolint && chmod +x /usr/bin/hadolint && \
curl https://apps.kaos.st/shdoc/latest/linux/x86_64/shdoc -o /usr/bin/shdoc && chmod +x /usr/bin/shdoc && \
wget https://andy.one/dotfiles/install.sh && bash install.sh && rm -f install.sh && \
rm -rf /var/cache/dnf /var/log/dnf.*
WORKDIR /root
ENTRYPOINT ["/usr/bin/zsh"]
################################################################################