latest ubuntu versions do not include an old version of python anymore, updated the script to manually install an older version of python and the corrisponding pip version
This commit is contained in:
parent
72a1198e50
commit
aec955386a
17
Dockerfile
17
Dockerfile
@ -1,12 +1,23 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:22.04
|
||||||
#ENV TZ="America/New_York"
|
#ENV TZ="America/New_York"
|
||||||
|
|
||||||
RUN mkdir /notes
|
RUN mkdir /notes
|
||||||
WORKDIR /notes
|
WORKDIR /notes
|
||||||
|
|
||||||
|
RUN ln -snf /usr/share/zoneinfo/America/New_York /etc/localtime && \
|
||||||
|
echo "America/New_York" > /etc/timezone
|
||||||
RUN apt-get update && apt-get install -y curl vim neovim zsh git \
|
RUN apt-get update && apt-get install -y curl vim neovim zsh git \
|
||||||
python3-wheel python3-pip && \
|
python3-wheel python3-pip software-properties-common
|
||||||
python3 -m pip install -U pip mdv
|
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||||
|
RUN rm -f /usr/bin/python /usr/bin/pip /usr/bin/python3
|
||||||
|
RUN ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
RUN ln -s /usr/bin/python3.8 /usr/bin/python
|
||||||
|
RUN ln -s /usr/bin/python3.8 /usr/bin/python3
|
||||||
|
RUN apt-get install -y python3.8 python3.8-distutils
|
||||||
|
RUN curl -LOJ https://bootstrap.pypa.io/get-pip.py && python3.8 ./get-pip.py && \
|
||||||
|
rm -f ./get-pip.py
|
||||||
|
|
||||||
|
RUN python3.8 -m pip install -U pip mdv
|
||||||
|
|
||||||
# Set up zsh
|
# Set up zsh
|
||||||
RUN echo "autoload -Uz promptinit" > /root/.zshrc && \
|
RUN echo "autoload -Uz promptinit" > /root/.zshrc && \
|
||||||
|
Loading…
Reference in New Issue
Block a user