Last active
March 13, 2021 15:27
-
-
Save H0neyBadger/e49d9ebdfe5eaf2274b59075704450c9 to your computer and use it in GitHub Desktop.
python / terrafrom / npm container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/library/archlinux:latest | |
# RUN apk --update add git make curl bash gcc libc-dev zlib-dev sqlite-dev bzip2-dev readline-dev openssl-dev && \ | |
# rm -rf /var/lib/apt/lists/* && \ | |
# rm /var/cache/apk/* | |
RUN pacman --noconfirm -Syu && \ | |
pacman --noconfirm -S git make curl bash gcc unzip \ | |
zlib sqlite bzip2 readline openssl && \ | |
yes | pacman -Scc | |
ENV HOME="/root" | |
ENV PYENV_ROOT="${HOME}/.pyenv" | |
ENV PATH="${PYENV_ROOT}/bin:${HOME}/.poetry/bin:${HOME}/.tfenv/bin:$PATH" | |
# PYTHON | |
ADD https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py /tmp | |
RUN git clone https://github.com/pyenv/pyenv.git ~/.pyenv --depth=1 | |
RUN cd ~/.pyenv && src/configure && make -C src | |
RUN ~/.pyenv/bin/pyenv init - > ~/.bashrc | |
# TERRAFORM | |
RUN git clone https://github.com/tfutils/tfenv.git ~/.tfenv --depth=1 | |
# NVM | |
RUN git clone https://github.com/nvm-sh/nvm.git ~/.nvm --depth=1 | |
RUN echo '. ~/.nvm/nvm.sh' >> ~/.bashrc | |
# RUN ~/.pyenv/bin/pyenv install 3.7.10 | |
# RUN ~/.pyenv/bin/pyenv install 3.8.8 | |
# RUN ~/.pyenv/bin/pyenv install 3.9.2 | |
# RUN . ~/.bashrc; PYENV_VERSION=3.7.10 python /tmp/get-poetry.py | |
CMD [ "/bin/bash" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment