Skip to content

Commit d22ecfe

Browse files
author
Dominik Falkner
committed
fix: Add isort and fix errors in dockerfiles
1 parent 2d90370 commit d22ecfe

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-base‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ ARG PYTHON_VERSION={{cookiecutter.python_version}}
66
ARG POETRY_VERSION=1.5.1
77
LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
88

9+
RUN apt-get update && apt-get install -yq \
10+
build-essential \
11+
libssl-dev \
12+
zlib1g-dev \
13+
libbz2-dev \
14+
libreadline-dev \
15+
libsqlite3-dev \
16+
curl \
17+
libncursesw5-dev \
18+
xz-utils \
19+
tk-dev \
20+
libxml2-dev \
21+
libxmlsec1-dev \
22+
libffi-dev \
23+
liblzma-dev \
24+
git \
25+
python3-distutils \
26+
&& rm -rf /var/lib/apt/lists/*
27+
28+
ENV PYENV_ROOT $HOME/.pyenv
29+
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
30+
31+
# Install pyenv
32+
RUN set -ex \
33+
&& curl https://pyenv.run | bash \
34+
&& pyenv update \
35+
&& eval "$(pyenv init -)" && pyenv --version
36+
937
RUN pip install --upgrade pip
1038

1139
# Install python and set interpreter

‎{{ cookiecutter.__package_name_kebab_case }}/Dockerfile-test‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ ARG PYTHON_VERSION={{cookiecutter.python_version}}
66
ARG POETRY_VERSION=1.5.1
77
LABEL maintainer="{{cookiecutter.author_name}} <{{cookiecutter.author_email}}>"
88

9+
RUN apt-get update && apt-get install -yq \
10+
build-essential \
11+
libssl-dev \
12+
zlib1g-dev \
13+
libbz2-dev \
14+
libreadline-dev \
15+
libsqlite3-dev \
16+
curl \
17+
libncursesw5-dev \
18+
xz-utils \
19+
tk-dev \
20+
libxml2-dev \
21+
libxmlsec1-dev \
22+
libffi-dev \
23+
liblzma-dev \
24+
git \
25+
python3-distutils \
26+
&& rm -rf /var/lib/apt/lists/*
27+
28+
ENV PYENV_ROOT $HOME/.pyenv
29+
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
30+
31+
# Install pyenv
32+
RUN set -ex \
33+
&& curl https://pyenv.run | bash \
34+
&& pyenv update \
35+
&& eval "$(pyenv init -)" && pyenv --version
36+
937
RUN pip install --upgrade pip
1038

1139
# Install python and set interpreter

0 commit comments

Comments
 (0)