-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 930 Bytes
/
Dockerfile
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 ubuntu:22.04
# Dependencies (needed for scripts as well)
RUN apt-get update && \
apt-get install -y unzip jq curl
# Install docker
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \
sh get-docker.sh
# Install AWS CLI
RUN ARCH=$(dpkg --print-architecture) && \
if [ "$ARCH" = "amd64" ]; then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install; \
elif [ "$ARCH" = "arm64" ]; then \
curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install; \
else \
echo "Unsupported architecture: $ARCH"; \
fi
# Setup workspace
WORKDIR /app
COPY . /app
# Give executable permissions
RUN chmod +x /app/run.sh
RUN chmod +x /app/deploy.sh
# Entry point to run Docker commands on the host
CMD ["./run.sh"]