diff --git a/devops/Dockerfile b/devops/Dockerfile index b30f7b5..ef6c417 100644 --- a/devops/Dockerfile +++ b/devops/Dockerfile @@ -38,23 +38,26 @@ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && npm install -g npm@latest # --- Install act (GitHub Actions local runner) --- -RUN curl -s https://api.github.com/repos/nektos/act/releases/latest \ - | grep "browser_download_url.*linux-amd64.*tar.gz" \ +RUN mkdir /tmp/act \ + && curl -s https://api.github.com/repos/nektos/act/releases/latest \ + | grep "browser_download_url.*act_Linux_x86_64.tar.gz" \ | cut -d '"' -f 4 \ - | wget -O /usr/local/bin/act -i - \ - && chmod +x /usr/local/bin/act + | wget -O /tmp/act/act.tar.gz -i - \ + && tar -xzf /tmp/act/act.tar.gz -C /tmp/act \ + && install -m 0755 /tmp/act/act /usr/local/bin/act \ + && rm -r /tmp/act # -- install chroma for zsh -RUN curl -s https://api.github.com/repos/alecthomas/chroma/releases/latest \ +RUN mkdir /tmp/chroma \ + && curl -s https://api.github.com/repos/alecthomas/chroma/releases/latest \ | grep "browser_download_url.*linux-amd64.*tar.gz" \ | cut -d '"' -f 4 \ - | wget -O /tmp/chroma.tar.gz -i - \ - && tar -xzf /tmp/chroma.tar.gz -C /usr/local/bin \ - && chmod +x /usr/local/bin/chroma + | wget -O /tmp/chroma/chroma.tar.gz -i - \ + && tar -xzf /tmp/chroma/chroma.tar.gz -C /tmp/chroma \ + && install -m 0755 /tmp/chroma/chroma /usr/local/bin/chroma \ + && rm -r /tmp/chroma - - -# --- set zsh shell --- +# --- set zsh shell as default --- RUN chsh -s /usr/bin/zsh vscode RUN git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git /home/vscode/.oh-my-zsh/custom/plugins/fast-syntax-highlighting