FROM git.luke-else.co.uk/luke-else/lab:latest

# Download the installer script:
RUN curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
RUN chmod +x install-opentofu.sh

# Run the installer
RUN ./install-opentofu.sh --install-method apk

# Remove the installer:
RUN rm -f install-opentofu.sh

CMD [ "tmux" ]