-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.1 KB
/
Copy pathDockerfile
File metadata and controls
33 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ghcr.io/runatlantis/atlantis:v0.35.0
# Add labels
LABEL maintainer="your-email@example.com" \
description="Atlantis with AI-powered Terraform plan analysis" \
version="0.0.1"
# Terraform version - keep aligned with your infrastructure requirements
ARG TERRAFORM_VERSION=1.8.3
# Install Terraform and Python for AI analysis
WORKDIR /tmp
USER root
# Install specific Terraform version
RUN curl -LOs https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
mv terraform /usr/local/bin/terraform${TERRAFORM_VERSION} && \
ln -sf /usr/local/bin/terraform${TERRAFORM_VERSION} /usr/local/bin/terraform && \
rm -rf /tmp/*
# Install Python and required packages for AWS Bedrock AI integration
RUN apk add --no-cache python3 py3-pip && \
pip3 install boto3 requests --break-system-packages
# Create scripts directory and add AI analyzer
RUN mkdir -p /scripts
COPY ai_analyzer.py /scripts/
RUN chmod +x /scripts/ai_analyzer.py
# Return to original settings
WORKDIR /
USER atlantis