FROM gitea/runner:nightly

SHELL ["/bin/bash", "-c"]

RUN apk add --no-cache \
    nodejs \
    npm \
    make \
    git \
    gnupg \
    python3 \
    py3-pip \
    curl \
    unzip \
    docker-cli \
    libc6-compat

# tfenv
RUN git clone --depth=1 https://github.com/tfutils/tfenv.git ~/.tfenv && \
    ln -s ~/.tfenv/bin/* /usr/local/bin && \
    tfenv install 1.8.4 && \
    tfenv use 1.8.4

# AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
    unzip awscliv2.zip && \
    ./aws/install && \
    rm -rf awscliv2.zip aws
