Added boilerplate code for python
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
FROM python:3
|
||||
|
||||
LABEL maintainer="Jeffrey Phillips Freeman jeffrey.freeman@cleverthis.com"
|
||||
|
||||
ENV PYENV_ROOT="/.pyenv" \
|
||||
PATH="/.pyenv/bin:/.pyenv/shims:$PATH"
|
||||
|
||||
RUN curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
|
||||
|
||||
RUN apt update -y && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
libssl-dev \
|
||||
libreadline-gplv2-dev \
|
||||
libncursesw5-dev \
|
||||
libssl-dev \
|
||||
libsqlite3-dev \
|
||||
tk-dev \
|
||||
libgdbm-dev \
|
||||
libc6-dev \
|
||||
libbz2-dev \
|
||||
nano && \
|
||||
apt-get clean && \
|
||||
rm -r /var/lib/apt/lists/*
|
||||
|
||||
#RUN pyenv install 2.7.18 && \
|
||||
# pyenv install 3.3.7 && \
|
||||
# pyenv install 3.4.10 && \
|
||||
# pyenv install 3.5.10 && \
|
||||
# pyenv install 3.9.0 && \
|
||||
# pyenv install pypy-5.7.1
|
||||
|
||||
RUN pyenv install 3.9.0 && \
|
||||
pyenv install 2.7.18 && \
|
||||
pyenv global 2.7.18 && \
|
||||
pyenv global 3.9.0
|
||||
RUN /.pyenv/versions/3.9.0/bin/python3.9 -m pip install --upgrade pip
|
||||
RUN pip install tox
|
||||
|
||||
RUN mkdir -p /usr/src/boilerplate && \
|
||||
chmod a+rwx -R /usr/src/boilerplate && \
|
||||
mkdir /.cache && \
|
||||
chmod a+rwx /.cache && \
|
||||
mkdir /.tox && \
|
||||
chmod a+rwx /.tox
|
||||
|
||||
VOLUME /usr/src/boilerplate
|
||||
Reference in New Issue
Block a user