-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathContainerfile
More file actions
74 lines (66 loc) · 2.07 KB
/
Containerfile
File metadata and controls
74 lines (66 loc) · 2.07 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM public.ecr.aws/docker/library/ubuntu:noble-20260217
# Prevent automatic apt cache cleanup, as caching is desired when running integration tests.
# Instead, when installing packages during container builds, explicit cache cleanup is required.
RUN rm /etc/apt/apt.conf.d/docker-clean
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
curl \
g++ \
gcc \
git \
gnupg2 \
libbz2-dev \
libffi-dev \
libreadline-dev \
libsqlite3-dev \
libxml2-dev \
libxslt1-dev \
libyaml-dev \
locales \
make \
openssh-client \
openssh-server \
openssl \
python-is-python3 \
python3.12-dev \
python3.12-venv \
shellcheck \
sshpass \
sudo \
systemd-sysv \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Perform locale generation now that the locales package is installed.
RUN locale-gen en_US.UTF-8
# Enable the deadsnakes PPA to provide additional packages.
COPY files/deadsnakes.gpg /etc/apt/keyrings/deadsnakes.gpg
COPY files/deadsnakes.list /etc/apt/sources.list.d/deadsnakes.list
# Install Python versions available from the deadsnakes PPA.
# This is done separately to avoid conflicts with official Ubuntu packages.
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.9-dev \
python3.9-venv \
python3.10-dev \
python3.10-venv \
python3.11-dev \
python3.11-venv \
python3.13-dev \
python3.13-venv \
python3.14-dev \
python3.14-venv \
python3.15-dev \
python3.15-venv \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install PowerShell.
COPY files/powershell.sh /usr/share/container-setup/
RUN /usr/share/container-setup/powershell.sh 7.6.0
CMD ["/sbin/init"]
# Install pip last to speed up local container rebuilds.
COPY files/*.py /usr/share/container-setup/
RUN ln -s /usr/bin/python3.14 /usr/share/container-setup/python
RUN /usr/share/container-setup/python -B /usr/share/container-setup/setup.py