Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make sanctions Dockerfile look like subscriptions (to troubles… #8

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 31 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,48 @@ MAINTAINER [email protected]

# gcc; for compiling python extensions distributed with python packages like mysql-client


# set timezone to prevent geographic location from hanging see https://dev.to/grigorkh/fix-tzdata-hangs-during-docker-image-build-4o9m
ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo


# If you add a package here please include a comment above describing what it is used for
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qy install --no-install-recommends \
language-pack-en locales \
python3.8 python3-dev python3-pip \
# The mysqlclient Python package has install-time dependencies
libmysqlclient-dev libssl-dev pkg-config \
language-pack-en \
locales \
python3.9 \
python3.9-dev \
python3-pip \
pkg-config \
libmysqlclient-dev \
libssl-dev \
gcc \
build-essential \
git \
wget
wget \
curl

# Create a symbolic link between python3 and python3.9
RUN ln -s /usr/bin/python3.9 /usr/bin/python

# Need to overwrite python3 with python3.9 as well, because
# helm template invokes `python3` directly in migrations init container
RUN ln -sf /usr/bin/python3.9 /usr/bin/python3

# Install pip for Python 3.9
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python get-pip.py && \
rm get-pip.py

# Create a symbolic link between pip and pip3.9
RUN ln -sf /usr/bin/pip3 /usr/bin/pip

RUN pip install --upgrade pip setuptools

# delete apt package lists because we do not need them inflating our image
RUN rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/bin/python3 /usr/bin/python

RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
Expand Down
Loading