Skip to content

Commit f1709aa

Browse files
authored
Update Dockerfile (#52)
* Update Python base image to 3.11.4-slim-bullseye * Update sources.list to use HTTPS and install required packages
1 parent 8b28e1e commit f1709aa

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
FROM public.ecr.aws/docker/library/python:3.11.4-slim-buster
1+
FROM public.ecr.aws/docker/library/python:3.11.4-slim-bullseye
22

33
ENV KUBECTL_VERSION 1.26.3
44
ENV HELM_VERSION 3.11.1
55
ENV HELMFILE_VERSION 0.143.5
66
ENV CHAMBER_VERSION 2.11.1
7-
# Helm plugins:
8-
# https://github.com/databus23/helm-diff/releases
97
ENV HELM_DIFF_VERSION 3.6.0
10-
# https://github.com/aslafy-z/helm-git/releases
11-
# We had issues with helm-diff 3.1.3 + helm-git 0.9.0,
12-
# previous workaround was to pin helm-git to version 0.8.1.
13-
# We expect this has been fixed now with helm-diff 3.3.2 + helm-git 0.11.1
148
ENV HELM_GIT_VERSION 0.15.1
159

1610
ENV HELM_DATA_HOME /root/.local/share/helm
1711
ENV HELM_CONFIG_HOME /root/.config/helm
1812
ENV HELM_CACHE_HOME /root/.cache/helm
1913

2014
RUN pip install awscli
21-
RUN apt-get update && apt-get install -y apt-utils curl
15+
16+
# Replace HTTP with HTTPS in sources.list
17+
RUN sed -i 's|http://deb.debian.org|https://deb.debian.org|g' /etc/apt/sources.list
18+
19+
# Update CA certificates and install required packages
20+
RUN apt-get update && apt-get install -y ca-certificates apt-utils curl
21+
2222
RUN curl -1sLf 'https://dl.cloudsmith.io/public/cloudposse/packages/cfg/setup/bash.deb.sh' | bash
2323

2424
RUN apt-get update && apt-get install -y \
25-
bash=5.0-4 \
26-
yq=4.32.1-1 \
27-
jq \
28-
git
25+
bash \
26+
yq \
27+
jq \
28+
git
2929

3030
COPY entrypoint.sh /usr/local/bin/entrypoint
3131
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]

0 commit comments

Comments
 (0)