Skip to content

Commit 040d767

Browse files
🚀 Switch from Alpine to Ubuntu (#100)
Co-authored-by: ChristophShyper <[email protected]>
1 parent ce8869d commit 040d767

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Dockerfile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
# Instead of building from scratch pull my other docker image
22
FROM devopsinfra/docker-terragrunt:slim-tf-latest AS builder
33

4-
# Use a clean tiny image to store artifacts in
5-
FROM alpine:3.22.2
4+
FROM ubuntu:questing-20251007
5+
6+
# Disable interactive mode
7+
ENV DEBIAN_FRONTEND=noninteractive
68

79
# Copy all needed files
810
COPY --from=builder /usr/bin/terraform /usr/bin/
911
COPY entrypoint.sh /usr/bin/
1012

1113
# Install needed packages
12-
RUN set -eux ;\
13-
chmod +x /usr/bin/entrypoint.sh /usr/bin/terraform ;\
14-
apk update --no-cache ;\
15-
apk add --no-cache \
16-
bash~=5.2 \
17-
curl~=8.14 \
18-
git~=2.49 ;\
19-
rm -rf /var/cache/* ;\
20-
rm -rf /root/.cache/*
14+
SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
15+
# hadolint ignore=DL3008
16+
RUN chmod +x /usr/bin/entrypoint.sh /usr/bin/terraform ;\
17+
apt-get update -y ;\
18+
apt-get install --no-install-recommends -y \
19+
bash \
20+
curl \
21+
git ;\
22+
apt-get clean ;\
23+
rm -rf /var/lib/apt/lists/*
2124

2225
# Finish up
2326
CMD ["terraform --version"]

0 commit comments

Comments
 (0)