diff --git a/tests/containers/Containerfile.alpine b/tests/containers/Containerfile.alpine index d00149a..784f3c3 100644 --- a/tests/containers/Containerfile.alpine +++ b/tests/containers/Containerfile.alpine @@ -1,14 +1,23 @@ FROM alpine:latest MAINTAINER Juno Takano juno@jutty.dev -USER root +ENV DEBUG=debug +ENV TAG=${TAG:-latest} # Setup tooling -RUN apk add curl clang +RUN apk add curl clang git file RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y # Install -RUN echo "root_node = 'test'" > /root/graph.toml -RUN $HOME/.cargo/bin/cargo install --git https://codeberg.org/jutty/en +RUN git clone -b "$TAG" --single-branch https://codeberg.org/jutty/en /build +RUN < /root/graph.toml -RUN $HOME/.cargo/bin/cargo install --git https://codeberg.org/jutty/en +RUN git clone -b "$TAG" --single-branch https://codeberg.org/jutty/en /build +RUN <