File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # TODO: Find out whether it possible to use "faster" base Python image
21FROM python:3.10.0-slim-bullseye as python-base
32
43LABEL maintainer="Igor Davydenko <iam@igordavydenko.com>"
5- LABEL description="Add poetry, pre-commit, and other dev-tools installed via pipx to official Python slim Docker image."
4+ LABEL description="Add poetry, pre-commit and tox installed via pipx as well as other system dev tools to official Python slim Docker image."
65
76# Install additional dev dependencies and ensure to use latest system versions
87RUN apt-get update -qq \
@@ -24,7 +23,8 @@ RUN apt-get update -qq \
2423 && rm -rf /var/lib/apt/lists/* \
2524 && apt-get autoremove -y
2625
27- # Update path to include `/root/.local/bin`
26+ # Update path to include `/root/.local/bin` for `pip install --user ...` and
27+ # `pipx` needs
2828ENV PATH="/root/.local/bin:${PATH}"
2929
3030# Update pip to latest version, install pipx & virtualen into user directory,
Original file line number Diff line number Diff line change 33[ ![ CI] ( https://github.com/playpauseandstop/docker-python/actions/workflows/ci.yml/badge.svg )] ( https://github.com/playpauseandstop/docker-python/actions/workflows/ci.yml )
44[ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/playpauseandstop/docker-python.svg )] ( https://hub.docker.com/r/playpauseandstop/docker-python )
55
6- Add poetry, pre-commit, and other dev-tools installed via pipx to official Python slim Docker image.
6+ Add poetry, pre-commit and tox installed via pipx as well as other system dev tools to official Python slim Docker image.
77
88## Usage
99
You can’t perform that action at this time.
0 commit comments