14 lines
750 B
Bash
14 lines
750 B
Bash
FROM ubuntu:18.04
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install --no-install-recommends software-properties-common -y
|
|
# 18.04 includes 2.17 but github requires 2.18+ to support submodules.
|
|
RUN add-apt-repository ppa:git-core/ppa
|
|
ADD .github/workflows/install_dependencies_run.sh install_dependencies_run.sh
|
|
RUN bash install_dependencies_run.sh
|
|
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
|
RUN python3.8 get-pip.py && rm get-pip.py
|
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
|
|
RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
|
|
ADD requirements.txt requirements.txt
|
|
ENV PYTHON_EXEC=python3.8
|
|
RUN ${PYTHON_EXEC} -m pip install -r requirements.txt |