Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

irr123/python-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python builder image

Read it first: https://bogomolov.work/blog/posts/docker-uv/


Simple image with uv package manager.

Available at docker-hub.

History

  1. BASE_IMAGE=python:3.13.2-slim-bookworm VERSION=v1.0.4 make build
  2. BASE_IMAGE=python:3.13.1-slim-bookworm VERSION=v1.0.3 make build
  3. BASE_IMAGE=python:3.13.0-slim-bookworm VERSION=v1.0.2 make build
  4. BASE_IMAGE=python:3.12.7-slim-bookworm VERSION=v1.0.1 make build
  5. BASE_IMAGE=python:3.12.5-slim-bookworm VERSION=v1.0.0 make build

How to

make && VERSION=v1.0.1 make

Multistage example

FROM c1rno/python:v1.0.0 AS builder

COPY ./requirements.txt requirements.txt
RUN uv pip install -r requirements.txt

FROM python:3.12.5-slim-bookworm

ENV PYTHONUNBUFFERED=1
ENV PATH=/opt/venv/bin:$PATH

COPY --from=builder /opt/venv /opt/venv

COPY . /opt/app
WORKDIR /opt/app

About

Python image with uv

Resources

License

Stars

Watchers

Forks

Packages

No packages published