Skip to content

Commit

Permalink
chore: make sanctions Dockerfile look like subscriptions (to troubles…
Browse files Browse the repository at this point in the history
…hoot permission issue) (#8)
  • Loading branch information
christopappas authored Oct 20, 2023
1 parent 6e29482 commit aad8666
Showing 1 changed file with 31 additions and 7 deletions.
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

0 comments on commit aad8666

Please sign in to comment.