Public | Automated Build

Last pushed: 4 months ago
Short Description
Python
Full Description

Configuration

  • PIP_DISABLE_PIP_VERSION_CHECK=on: Enables or disables pip version checking. Choices: on, off
  • PIP_FIND_LINKS=: The pip index URL to find packages. Default: None
  • BUILD_DEPS=: Alpine build dependencies

Examples

Simple builds

FROM                    wardsco/python:3.6.1-builder as builder
FROM                    python:3.6.1-alpine3.6

WORKDIR                 /usr/src/app/
COPY --from=builder     /usr/local/lib/python3.6/site-packages/ /usr/local/lib/python3.6/site-packages/
COPY                    . .

docker build .

External dependencies builds

gevent
Pillow
FROM                    wardsco/python:3.6.1-builder as builder
FROM                    python:3.6.1-alpine3.6

WORKDIR                 /usr/src/app/
COPY --from=builder     /usr/local/lib/python3.6/site-packages/ /usr/local/lib/python3.6/site-packages/
COPY                    . .

docker build --build-arg "BUILD_DEPS=libjpeg-turbo-dev libwebp-dev openjpeg-dev tiff-dev" .

Docker Pull Command
Owner
wardsco
Source Repository

Comments (0)