26 lines
707 B
Docker
26 lines
707 B
Docker
FROM node:lts-alpine
|
|
|
|
LABEL maintainer="Arcodange arcodange@gmail.com"
|
|
LABEL description="Image minimaliste avec OpenTofu, Node.js, git, curl, jq, yq, openssh"
|
|
|
|
# Dépendances système
|
|
RUN apk add --no-cache \
|
|
bash \
|
|
curl \
|
|
git \
|
|
openssh \
|
|
jq \
|
|
yq \
|
|
ca-certificates
|
|
|
|
# Installer OpenTofu via le script officiel
|
|
# Variables
|
|
ENV TOFU_VERSION="1.10.3"
|
|
RUN curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version ${TOFU_VERSION} --skip-verify
|
|
|
|
# Vérifications (optionnel)
|
|
RUN node -v && npm -v && tofu -version && git --version && ssh -V && jq --version && yq --version
|
|
|
|
ENV PATH="/usr/local/bin:${PATH}"
|
|
CMD [ "/bin/sh"]
|