1
1
# =================================================================
2
2
#
3
- # Author: Joost van Ulden <[email protected] >
3
+ # Authors: Joost van Ulden <[email protected] >
4
+
4
5
#
5
6
# Copyright (c) 2020-2022 Government of Canada
6
7
#
27
28
#
28
29
# =================================================================
29
30
30
- FROM debian:sid-20201012 -slim
31
+ FROM debian:bullseye -slim
31
32
32
33
LABEL org.opencontainers.image.authors=
"Joost van Ulden <[email protected] >, Anthony Fok <[email protected] >"
33
34
LABEL org.opencontainers.image.source="https://github.com/opendrr/python-env"
34
- LABEL org.opencontainers.image.version="1.2.4 "
35
+ LABEL org.opencontainers.image.version="1.3.0 "
35
36
LABEL org.opencontainers.image.vendor="Government of Canada"
36
37
LABEL org.opencontainers.image.licenses="MIT"
37
38
39
+ # To use Debian Snapshot, prepend the following commands:
40
+ # echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/docker-snapshot.conf
41
+ # sed -i '/snapshot.debian.org/s/^# //; /deb.debian.org/s/^/# /' /etc/apt/sources.list
42
+
38
43
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
39
- RUN echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/docker-snapshot.conf \
40
- && sed -i '/snapshot.debian.org/s/^# //; /deb.debian.org/s/^/# /' /etc/apt/sources.list \
41
- && echo 'deb http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list \
42
- && echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list \
43
- && printf 'Package: *\n \
44
- Pin: release n=bullseye\n \
45
- Pin-Priority: 50' > /etc/apt/preferences.d/git-in-bullseye \
46
- && cat /etc/apt/preferences.d/git-in-bullseye \
44
+ RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' >> /etc/apt/sources.list \
47
45
&& apt-get update \
48
46
&& apt-get install -y --no-install-recommends \
49
- eatmydata \
50
- && eatmydata apt-get install -y --no-install-recommends \
51
47
ca-certificates \
52
48
curl \
49
+ eatmydata \
50
+ gpg \
51
+ && curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor \
52
+ | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
53
+ && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main 14' \
54
+ > /etc/apt/sources.list.d/pgdg.list \
55
+ && curl -fsSL --create-dirs --output /usr/share/keyrings/githubcli-archive-keyring.gpg \
56
+ https://cli.github.com/packages/githubcli-archive-keyring.gpg \
57
+ && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
58
+ > /etc/apt/sources.list.d/github-cli.list \
59
+ && eatmydata apt-get update \
60
+ && eatmydata apt-get install -t bullseye-backports -y --no-install-recommends \
61
+ 7zip \
53
62
dos2unix \
54
63
gdal-bin \
55
- gpg \
64
+ git \
65
+ git-lfs \
66
+ gh \
56
67
jq \
57
68
moreutils \
58
69
nano \
59
70
neovim \
71
+ postgresql-client \
60
72
procps \
61
73
pv \
62
74
pypy3 \
75
+ python3-elasticsearch \
63
76
python3-numpy \
64
77
python3-pandas \
65
78
python3-psycopg2 \
@@ -69,22 +82,6 @@ Pin-Priority: 50' > /etc/apt/preferences.d/git-in-bullseye \
69
82
python3-pip \
70
83
time \
71
84
xz-utils \
72
- && eatmydata apt-get install -y --no-install-recommends -t bullseye-backports \
73
- 7zip \
74
- git \
75
- git-lfs \
76
- && curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor \
77
- | tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null \
78
- && echo 'deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main 14' \
79
- > /etc/apt/sources.list.d/pgdg.list \
80
- && curl -fsSL --create-dirs --output /usr/share/keyrings/githubcli-archive-keyring.gpg \
81
- https://cli.github.com/packages/githubcli-archive-keyring.gpg \
82
- && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
83
- > /etc/apt/sources.list.d/github-cli.list \
84
- && eatmydata apt-get update \
85
- && eatmydata apt-get install -y --no-install-recommends \
86
- gh \
87
- postgresql-client \
88
85
&& rm -rf /var/lib/apt/lists/*
89
86
90
87
COPY requirements.txt /tmp
0 commit comments