11# =================================================================
22#
3- # Author: Joost van Ulden <[email protected] >3+ # Authors: Joost van Ulden <[email protected] >4+ 45#
56# Copyright (c) 2020-2022 Government of Canada
67#
2728#
2829# =================================================================
2930
30- FROM debian:sid-20201012 -slim
31+ FROM debian:bullseye -slim
3132
3233LABEL org.opencontainers.image.authors=
"Joost van Ulden <[email protected] >, Anthony Fok <[email protected] >" 3334LABEL 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 "
3536LABEL org.opencontainers.image.vendor="Government of Canada"
3637LABEL org.opencontainers.image.licenses="MIT"
3738
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+
3843SHELL ["/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 \
4745 && apt-get update \
4846 && apt-get install -y --no-install-recommends \
49- eatmydata \
50- && eatmydata apt-get install -y --no-install-recommends \
5147 ca-certificates \
5248 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 \
5362 dos2unix \
5463 gdal-bin \
55- gpg \
64+ git \
65+ git-lfs \
66+ gh \
5667 jq \
5768 moreutils \
5869 nano \
5970 neovim \
71+ postgresql-client \
6072 procps \
6173 pv \
6274 pypy3 \
75+ python3-elasticsearch \
6376 python3-numpy \
6477 python3-pandas \
6578 python3-psycopg2 \
@@ -69,22 +82,6 @@ Pin-Priority: 50' > /etc/apt/preferences.d/git-in-bullseye \
6982 python3-pip \
7083 time \
7184 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 \
8885 && rm -rf /var/lib/apt/lists/*
8986
9087COPY requirements.txt /tmp
0 commit comments