|
1 | 1 | # this image does not get published, it is intended for local development only, see `Makefile` for usage |
2 | | -FROM ubuntu:24.04 as base |
| 2 | +FROM ubuntu:24.04 AS base |
3 | 3 |
|
4 | 4 | # prevent python installation from asking for time zone region |
5 | 5 | ARG DEBIAN_FRONTEND=noninteractive |
6 | 6 |
|
7 | 7 | # add python repository |
8 | 8 | RUN apt-get update \ |
9 | | - && apt-get install -y software-properties-common=0.99.22.9 \ |
10 | | - && add-apt-repository -y ppa:deadsnakes/ppa \ |
11 | | - && apt-get clean \ |
12 | | - && rm -rf \ |
13 | | - /var/lib/apt/lists/* \ |
14 | | - /tmp/* \ |
15 | | - /var/tmp/* |
| 9 | + && apt-get install -y software-properties-common=0.99.48 \ |
| 10 | + && add-apt-repository -y ppa:deadsnakes/ppa \ |
| 11 | + && apt-get clean \ |
| 12 | + && rm -rf \ |
| 13 | + /var/lib/apt/lists/* \ |
| 14 | + /tmp/* \ |
| 15 | + /var/tmp/* |
16 | 16 |
|
17 | 17 | # install python |
18 | 18 | RUN apt-get update \ |
19 | | - && apt-get install -y --no-install-recommends \ |
20 | | - build-essential=12.9ubuntu3 \ |
21 | | - git-all=1:2.34.1-1ubuntu1.10 \ |
22 | | - python3.8=3.8.19-1+jammy1 \ |
23 | | - python3.8-dev=3.8.19-1+jammy1 \ |
24 | | - python3.8-distutils=3.8.19-1+jammy1 \ |
25 | | - python3.8-venv=3.8.19-1+jammy1 \ |
26 | | - python3-pip=22.0.2+dfsg-1ubuntu0.4 \ |
27 | | - python3-wheel=0.37.1-2ubuntu0.22.04.1 \ |
28 | | - && apt-get clean \ |
29 | | - && rm -rf \ |
30 | | - /var/lib/apt/lists/* \ |
31 | | - /tmp/* \ |
32 | | - /var/tmp/* |
| 19 | + && apt-get install -y --no-install-recommends \ |
| 20 | + build-essential=12.10ubuntu1 \ |
| 21 | + git-all=1:2.43.0-1ubuntu7.1 \ |
| 22 | + python3.9=3.9.20-1+noble1 \ |
| 23 | + python3.9-dev=3.9.20-1+noble1 \ |
| 24 | + python3.9-distutils=3.9.20-1+noble1 \ |
| 25 | + python3.9-venv=3.9.20-1+noble1 \ |
| 26 | + python3-pip=24.0+dfsg-1ubuntu1 \ |
| 27 | + python3-wheel=0.42.0-2 \ |
| 28 | + && apt-get clean \ |
| 29 | + && rm -rf \ |
| 30 | + /var/lib/apt/lists/* \ |
| 31 | + /tmp/* \ |
| 32 | + /var/tmp/* |
33 | 33 |
|
34 | 34 | # update the default system interpreter to the newly installed version |
35 | | -RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 |
| 35 | +RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1 |
36 | 36 |
|
37 | 37 |
|
38 | | -FROM base as dbt-bigquery-dev |
| 38 | +FROM base AS dbt-bigquery-dev |
39 | 39 |
|
40 | | -HEALTHCHECK CMD python3 --version || exit 1 |
| 40 | +HEALTHCHECK CMD python --version || exit 1 |
41 | 41 |
|
42 | 42 | # send stdout/stderr to terminal |
43 | 43 | ENV PYTHONUNBUFFERED=1 |
|
0 commit comments