-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (40 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
46 lines (40 loc) · 1.43 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
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM node:20.19.1
# Install pnpm globally
RUN npm install -g pnpm
# Install necessary packages and dependencies
RUN apt-get update && apt-get install -y \
python3-pip \
gettext \
ca-certificates \
curl \
gnupg \
lsb-release \
groff \
less \
unzip
# Set up Docker's official GPG key and repository
RUN mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install Docker Engine, CLI, and Compose plugin
RUN apt-get update && apt-get install -y \
docker-ce \
docker-ce-cli \
docker-compose-plugin
# Install AWS CLI v2 based on architecture
RUN arch=$(uname -m) && \
if [ "$arch" = "x86_64" ]; then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"; \
elif [ "$arch" = "aarch64" ]; then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"; \
else \
echo "Unsupported architecture: $arch" && exit 1; \
fi && \
unzip awscliv2.zip && \
./aws/install
# Clean up installation files and apt cache
RUN rm -rf awscliv2.zip aws \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*