diff --git a/Dockerfile b/Dockerfile index 4769727..008afdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,23 @@ -FROM ubuntu:latest +FROM ubuntu:22.04 #ENV TZ="America/New_York" RUN mkdir /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 \ - python3-wheel python3-pip && \ - python3 -m pip install -U pip mdv + python3-wheel python3-pip software-properties-common +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 RUN echo "autoload -Uz promptinit" > /root/.zshrc && \