mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-26 23:33:17 +00:00
Update documentation/Dockerfile
This commit is contained in:
@ -1,23 +1,31 @@
|
|||||||
FROM ghcr.io/opentofu/opentofu:1.9-minimal AS tofu
|
FROM ghcr.io/opentofu/opentofu:1.9-minimal AS tofu
|
||||||
|
|
||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
# Copy the tofu binary
|
# Copy the tofu binary
|
||||||
COPY --from=tofu /usr/local/bin/tofu /usr/local/bin/tofu
|
COPY --from=tofu /usr/local/bin/tofu /usr/local/bin/tofu
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
|
# Atualizar pacotes e instalar dependências básicas
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
|
||||||
curl \
|
curl \
|
||||||
nodejs \
|
git \
|
||||||
npm \
|
|
||||||
unzip \
|
unzip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
jq \
|
||||||
|
gnupg \
|
||||||
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN curl -L -o /tmp/bw.zip https://github.com/bitwarden/cli/releases/download/v1.22.1/bw-linux-1.22.1.zip \
|
# Instalar Node.js 18 via NodeSource
|
||||||
&& unzip /tmp/bw.zip -d /usr/local/bin \
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||||
&& chmod +x /usr/local/bin/bw \
|
apt-get install -y nodejs
|
||||||
&& rm /tmp/bw.zip
|
|
||||||
|
|
||||||
|
# Verificar versões (opcional para debug)
|
||||||
|
RUN node -v && npm -v
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN npm install -g @bitwarden/cli
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
Reference in New Issue
Block a user