-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 886 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (29 loc) · 886 Bytes
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
34
35
FROM public.ecr.aws/docker/library/node:22-alpine
# CodeBuild-compatible setup with essential tools
ENV NODE_OPTIONS="--max-old-space-size=512"
# Install essential packages including tools for package management
RUN apk add --no-cache \
bash \
curl \
wget \
unzip \
zip \
aws-cli \
git \
jq \
python3 \
docker-cli \
py3-pip && \
rm -rf /var/cache/apk/*
# Install pnpm
RUN npm install -g --no-audit --no-fund pnpm && \
npm cache clean --force
# Install Terraform
ARG TERRAFORM_VERSION=1.14.8
RUN ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/') && \
wget -q -O /tmp/terraform.zip \
"https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${ARCH}.zip" && \
unzip -q /tmp/terraform.zip -d /usr/local/bin && \
rm /tmp/terraform.zip
WORKDIR /workspace
# No custom entrypoint - CodeBuild compatible