Public | Automated Build

Last pushed: 3 months ago
Short Description
lightweight Python 2.7 Docker base images
Full Description

Versions

Tag Python Base image Size
latest 2.7.12 ubuntu:xenial
xenial 2.7.12 ubuntu:xenial
alpine 2.7.13 alpine:latest

Building from source

git clone https://github.com/SmartFinn/Dockerfiles.git
cd Dockerfiles/python/<tag>
make build

Usage

Ubuntu based build

FROM smartfinn/python:xenial

ENV DEBIAN_FRONTEND=noninteractive

RUN BUILD_DEPS="build-essential python-all-dev" \
 && apt-get update \
 && apt-get install -y $BUILD_DEPS \
 && pip --no-cache-dir install <packages> \
 && apt-get purge -y --auto-remove $BUILD_DEPS \
 && rm -f /var/lib/apt/lists/*.*

Alpine based build

FROM smartfinn/python:alpine

RUN apk --no-cache add --virtual .build-deps build-base python-dev \
 && pip --no-cache-dir install <packages> \
 && apk --no-cache del .build-deps
Docker Pull Command
Owner
smartfinn
Source Repository

Comments (0)